public enum TaggingPresetType extends Enum<TaggingPresetType>
| Enum Constant and Description |
|---|
CLOSEDWAY
Closed way
|
NODE
Node
|
RELATION
Relation
|
WAY
Way
|
| Modifier and Type | Field and Description |
|---|---|
private String |
iconName |
private 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(String type)
Determines the
TaggingPresetType from a given string. |
String |
getIconName()
Replies the SVG icon name.
|
String |
getName()
Replies the name, as used in XML presets.
|
static TaggingPresetType |
valueOf(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
public static TaggingPresetType[] values()
for (TaggingPresetType c : TaggingPresetType.values()) System.out.println(c);
public static TaggingPresetType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getIconName()
public String getName()
public static TaggingPresetType forPrimitive(OsmPrimitive p)
TaggingPresetType of a given primitive.p - The OSM primitiveTaggingPresetType of ppublic static TaggingPresetType forPrimitiveType(OsmPrimitiveType type)
TaggingPresetType of a given primitive type.type - The OSM primitive typeTaggingPresetType of typepublic static TaggingPresetType fromString(String type)
TaggingPresetType from a given string.type - The OSM primitive type as string ("node", "way", "relation" or "closedway")TaggingPresetType from type