public static enum TaggingPresetItems.MatchType extends Enum<TaggingPresetItems.MatchType>
TaggingPresetItem.matches(java.util.Map<java.lang.String, java.lang.String>)
) is performed.Enum Constant and Description |
---|
KEY
Positive if key matches, neutral otherwise.
|
KEY_REQUIRED
Positive if key matches, negative otherwise.
|
KEY_VALUE
Positive if key and value matches, neutral otherwise.
|
KEY_VALUE_REQUIRED
Positive if key and value matches, negative otherwise.
|
NONE
Neutral, i.e., do not consider this item for matching.
|
Modifier and Type | Method and Description |
---|---|
String |
getValue()
Replies the associated textual value.
|
static TaggingPresetItems.MatchType |
ofString(String type)
Determines the
MatchType for the given textual value. |
static TaggingPresetItems.MatchType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaggingPresetItems.MatchType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TaggingPresetItems.MatchType NONE
public static final TaggingPresetItems.MatchType KEY
public static final TaggingPresetItems.MatchType KEY_REQUIRED
public static final TaggingPresetItems.MatchType KEY_VALUE
public static final TaggingPresetItems.MatchType KEY_VALUE_REQUIRED
public static TaggingPresetItems.MatchType[] values()
for (TaggingPresetItems.MatchType c : TaggingPresetItems.MatchType.values()) System.out.println(c);
public static TaggingPresetItems.MatchType 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 getValue()
public static TaggingPresetItems.MatchType ofString(String type)
MatchType
for the given textual value.type
- the textual valueMatchType
for the given textual value