public enum UploadPolicy extends java.lang.Enum<UploadPolicy>
DataSet)DownloadPolicy| Enum Constant and Description |
|---|
BLOCKED
Upload blocked.
|
DISCOURAGED
Upload discouraged, for example when using or distributing a private dataset.
|
NORMAL
Normal dataset, upload 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 UploadPolicy |
of(java.lang.String xmlFlag)
Returns the
UploadPolicy for the given upload='...' XML-attribute |
static UploadPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UploadPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UploadPolicy NORMAL
public static final UploadPolicy DISCOURAGED
public static final UploadPolicy BLOCKED
final java.lang.String xmlFlag
public static UploadPolicy[] values()
for (UploadPolicy c : UploadPolicy.values()) System.out.println(c);
public static UploadPolicy 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.upload attributepublic static UploadPolicy of(java.lang.String xmlFlag)
UploadPolicy for the given upload='...' XML-attributexmlFlag - upload='...' XML-attribute to convertUploadPolicy valuejava.lang.IllegalArgumentException - for invalid values