Package org.openstreetmap.josm.tools
Class TaginfoRegionalInstance
- java.lang.Object
-
- org.openstreetmap.josm.tools.TaginfoRegionalInstance
-
public class TaginfoRegionalInstance extends java.lang.Object
Describes a regional Taginfo instance.- Since:
- 15876
-
-
Constructor Summary
Constructors Constructor Description TaginfoRegionalInstance(java.lang.String url, java.util.Set<java.lang.String> isoCodes)
Constructs a newTaginfoRegionalInstance
.TaginfoRegionalInstance(java.lang.String url, java.util.Set<java.lang.String> isoCodes, java.lang.String suffix)
Constructs a newTaginfoRegionalInstance
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getIsoCodes()
Returns the set of ISO3166 codes for the covered areas.java.lang.String
getSuffix()
Returns the optional suffix to distinguish them in UI.java.lang.String
getUrl()
Returns the instance URL.java.lang.String
toString()
-
-
-
Constructor Detail
-
TaginfoRegionalInstance
public TaginfoRegionalInstance(java.lang.String url, java.util.Set<java.lang.String> isoCodes)
Constructs a newTaginfoRegionalInstance
.- Parameters:
url
- Instance URL. Must not be nullisoCodes
- Set of ISO3166 codes for the covered areas. Must not be null
-
TaginfoRegionalInstance
public TaginfoRegionalInstance(java.lang.String url, java.util.Set<java.lang.String> isoCodes, java.lang.String suffix)
Constructs a newTaginfoRegionalInstance
.- Parameters:
url
- Instance URL. Must not be nullisoCodes
- Set of ISO3166 codes for the covered areas. Must not be nullsuffix
- Optional suffix to distinguish them in UI. Can be null
-
-
Method Detail
-
getUrl
public java.lang.String getUrl()
Returns the instance URL.- Returns:
- instance URL
-
getIsoCodes
public java.util.Set<java.lang.String> getIsoCodes()
Returns the set of ISO3166 codes for the covered areas.- Returns:
- set of ISO3166 codes for the covered areas
-
getSuffix
public java.lang.String getSuffix()
Returns the optional suffix to distinguish them in UI.- Returns:
- optional suffix to distinguish them in UI. Can be null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-