org.openstreetmap.josm.gui.tagging
Enum TaggingPreset.MatchType

java.lang.Object
  extended by java.lang.Enum<TaggingPreset.MatchType>
      extended by org.openstreetmap.josm.gui.tagging.TaggingPreset.MatchType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TaggingPreset.MatchType>
Enclosing class:
TaggingPreset

private static enum TaggingPreset.MatchType
extends java.lang.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

NONE

public static final TaggingPreset.MatchType NONE
Neutral, i.e., do not consider this item for matching.


KEY

public static final TaggingPreset.MatchType KEY
Positive if key matches, neutral otherwise.


KEY_REQUIRED

public static final TaggingPreset.MatchType KEY_REQUIRED
Positive if key matches, negative otherwise.


KEY_VALUE

public static final TaggingPreset.MatchType KEY_VALUE
Positive if key and value matches, negative otherwise.

Field Detail

value

private final java.lang.String value
Method Detail

values

public static TaggingPreset.MatchType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TaggingPreset.MatchType c : TaggingPreset.MatchType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TaggingPreset.MatchType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getValue

public java.lang.String getValue()

ofString

public static TaggingPreset.MatchType ofString(java.lang.String type)


JOSM