public static enum TaggingPresetItems.MatchType extends java.lang.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 | Field and Description |
---|---|
private java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Replies the associated textual value.
|
static TaggingPresetItems.MatchType |
ofString(java.lang.String type)
Determines the
MatchType for the given textual value. |
static TaggingPresetItems.MatchType |
valueOf(java.lang.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
private final java.lang.String value
public static TaggingPresetItems.MatchType[] values()
for (TaggingPresetItems.MatchType c : TaggingPresetItems.MatchType.values()) System.out.println(c);
public static TaggingPresetItems.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 namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()
public static TaggingPresetItems.MatchType ofString(java.lang.String type)
MatchType
for the given textual value.type
- the textual valueMatchType
for the given textual value