Package org.openstreetmap.josm.data.osm
Enum Class DownloadPolicy
- All Implemented Interfaces:
Serializable,Comparable<DownloadPolicy>,Constable
Download policy.
Determines if download from the OSM server is intended, discouraged, or disabled / blocked.
- Since:
- 13559 (extracted from
DataSet) - See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the corresponding value of theupload='...'XML-attribute in the .osm file.static DownloadPolicyReturns theDownloadPolicyfor the givenupload='...'XML-attributestatic DownloadPolicyReturns the enum constant of this class with the specified name.static DownloadPolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NORMAL
Normal dataset, download intended. -
BLOCKED
Download blocked. Download options completely disabled. Intended for private layers, see #8039.
-
-
Field Details
-
xmlFlag
-
-
Constructor Details
-
DownloadPolicy
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getXmlFlag
Get the corresponding value of theupload='...'XML-attribute in the .osm file.- Returns:
- value of the
downloadattribute
-
of
Returns theDownloadPolicyfor the givenupload='...'XML-attribute- Parameters:
xmlFlag-download='...'XML-attribute to convert- Returns:
DownloadPolicyvalue- Throws:
IllegalArgumentException- for invalid values
-