public enum TaggingPresetType extends java.lang.Enum<TaggingPresetType>
Enum Constant and Description |
---|
CLOSEDWAY
Closed way
|
NODE
Node
|
RELATION
Relation
|
WAY
Way
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
iconName |
private java.lang.String |
name |
Modifier and Type | Method and Description |
---|---|
static TaggingPresetType |
forPrimitive(OsmPrimitive p)
Determines the
TaggingPresetType of a given primitive. |
static TaggingPresetType |
forPrimitiveType(OsmPrimitiveType type)
Determines the
TaggingPresetType of a given primitive type. |
static TaggingPresetType |
fromString(java.lang.String type)
Determines the
TaggingPresetType from a given string. |
java.lang.String |
getIconName()
Replies the SVG icon name.
|
java.lang.String |
getName()
Replies the name, as used in XML presets.
|
static TaggingPresetType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TaggingPresetType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaggingPresetType NODE
public static final TaggingPresetType WAY
public static final TaggingPresetType RELATION
public static final TaggingPresetType CLOSEDWAY
private final java.lang.String iconName
private final java.lang.String name
public static TaggingPresetType[] values()
for (TaggingPresetType c : TaggingPresetType.values()) System.out.println(c);
public static TaggingPresetType 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 getIconName()
public java.lang.String getName()
public static TaggingPresetType forPrimitive(OsmPrimitive p)
TaggingPresetType
of a given primitive.p
- The OSM primitiveTaggingPresetType
of p
public static TaggingPresetType forPrimitiveType(OsmPrimitiveType type)
TaggingPresetType
of a given primitive type.type
- The OSM primitive typeTaggingPresetType
of type
public static TaggingPresetType fromString(java.lang.String type)
TaggingPresetType
from a given string.type
- The OSM primitive type as string ("node", "way", "relation" or "closedway")TaggingPresetType
from type