public enum DownloadPolicy extends java.lang.Enum<DownloadPolicy>
DataSet
)UploadPolicy
Enum Constant and Description |
---|
BLOCKED
Download blocked.
|
NORMAL
Normal dataset, download intended.
|
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
xmlFlag |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getXmlFlag()
Get the corresponding value of the
upload='...' XML-attribute
in the .osm file. |
static DownloadPolicy |
of(java.lang.String xmlFlag)
Returns the
DownloadPolicy for the given upload='...' XML-attribute |
static DownloadPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DownloadPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DownloadPolicy NORMAL
public static final DownloadPolicy BLOCKED
final java.lang.String xmlFlag
public static DownloadPolicy[] values()
for (DownloadPolicy c : DownloadPolicy.values()) System.out.println(c);
public static DownloadPolicy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getXmlFlag()
upload='...'
XML-attribute
in the .osm file.download
attributepublic static DownloadPolicy of(java.lang.String xmlFlag)
DownloadPolicy
for the given upload='...'
XML-attributexmlFlag
- download='...'
XML-attribute to convertDownloadPolicy
valuejava.lang.IllegalArgumentException
- for invalid values