org.openstreetmap.josm.actions
Class Map_Rectifier_WMSmenuAction.RectifierService

java.lang.Object
  extended by org.openstreetmap.josm.actions.Map_Rectifier_WMSmenuAction.RectifierService
Enclosing class:
Map_Rectifier_WMSmenuAction

public static class Map_Rectifier_WMSmenuAction.RectifierService
extends java.lang.Object

Class that bundles all required information of a rectifier service


Field Summary
 javax.swing.JRadioButton btn
           
private  java.util.regex.Pattern idValidator
           
private  java.lang.String name
           
private  java.lang.String url
           
private  java.util.regex.Pattern urlRegEx
           
private  java.lang.String wmsUrl
           
 
Constructor Summary
Map_Rectifier_WMSmenuAction.RectifierService(java.lang.String name, java.lang.String url, java.lang.String wmsUrl, java.lang.String urlRegEx, java.lang.String idValidator)
           
 
Method Summary
 boolean isSelected()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

private final java.lang.String name

url

private final java.lang.String url

wmsUrl

private final java.lang.String wmsUrl

urlRegEx

private final java.util.regex.Pattern urlRegEx

idValidator

private final java.util.regex.Pattern idValidator

btn

public javax.swing.JRadioButton btn
Constructor Detail

Map_Rectifier_WMSmenuAction.RectifierService

public Map_Rectifier_WMSmenuAction.RectifierService(java.lang.String name,
                                                    java.lang.String url,
                                                    java.lang.String wmsUrl,
                                                    java.lang.String urlRegEx,
                                                    java.lang.String idValidator)
Parameters:
name: - Name of the rectifing service
url: - URL to the service where users can register, upload, etc.
wmsUrl: - URL to the WMS server where JOSM will grab the images. Insert __s__ where the ID should be placed
urlRegEx: - a regular expression that determines if a given URL is one of the service and returns the WMS id if so
idValidator: - regular expression that checks if a given ID is syntactically valid
Method Detail

isSelected

public boolean isSelected()


JOSM