Class MapRectifierWMSmenuAction.RectifierService

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private 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

      Constructors 
      Constructor Description
      RectifierService​(java.lang.String name, java.lang.String url, java.lang.String wmsUrl, java.lang.String urlRegEx, java.lang.String idValidator)
      Constructs a new RectifierService.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private 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

        private javax.swing.JRadioButton btn
    • Constructor Detail

      • RectifierService

        public RectifierService​(java.lang.String name,
                                java.lang.String url,
                                java.lang.String wmsUrl,
                                java.lang.String urlRegEx,
                                java.lang.String idValidator)
        Constructs a new RectifierService.
        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