|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<TaggingPreset.MatchType>
org.openstreetmap.josm.gui.tagging.TaggingPreset.MatchType
private static enum TaggingPreset.MatchType
Enum denoting how a match (see TaggingPreset.Item.matches(java.util.Map
) is performed.
Enum Constant Summary | |
---|---|
KEY
Positive if key matches, neutral otherwise. |
|
KEY_REQUIRED
Positive if key matches, negative otherwise. |
|
KEY_VALUE
Positive if key and value matches, negative otherwise. |
|
NONE
Neutral, i.e., do not consider this item for matching. |
Field Summary | |
---|---|
private java.lang.String |
value
|
Method Summary | |
---|---|
java.lang.String |
getValue()
|
static TaggingPreset.MatchType |
ofString(java.lang.String type)
|
static TaggingPreset.MatchType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TaggingPreset.MatchType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TaggingPreset.MatchType NONE
public static final TaggingPreset.MatchType KEY
public static final TaggingPreset.MatchType KEY_REQUIRED
public static final TaggingPreset.MatchType KEY_VALUE
Field Detail |
---|
private final java.lang.String value
Method Detail |
---|
public static TaggingPreset.MatchType[] values()
for (TaggingPreset.MatchType c : TaggingPreset.MatchType.values()) System.out.println(c);
public static TaggingPreset.MatchType 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 name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()
public static TaggingPreset.MatchType ofString(java.lang.String type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |