Enum PhraseEnum
- java.lang.Object
-
- java.lang.Enum<PhraseEnum>
-
- edu.kit.ipd.are.graphimprove.nlp.improvestrategies.PhraseEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PhraseEnum>
public enum PhraseEnum extends Enum<PhraseEnum>
Represent the available PhraseTypes- Author:
- dominik
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADJECTIVE_PHRASEADVERB_PHRASECONJUNCTION_PHRASEINTERJECTIONLIST_MARKERNOUN_PHRASEPARTICLEPREPOSITIONAL_PHRASESUBORDINATING_CONJUNCTIONUNLIKE_COODINATED_PHRASEVERB_PHRASE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringasNodeTypeName()static PhraseEnumfromString(String text)StringgetValue()static PhraseEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PhraseEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOUN_PHRASE
public static final PhraseEnum NOUN_PHRASE
-
PREPOSITIONAL_PHRASE
public static final PhraseEnum PREPOSITIONAL_PHRASE
-
VERB_PHRASE
public static final PhraseEnum VERB_PHRASE
-
ADVERB_PHRASE
public static final PhraseEnum ADVERB_PHRASE
-
ADJECTIVE_PHRASE
public static final PhraseEnum ADJECTIVE_PHRASE
-
SUBORDINATING_CONJUNCTION
public static final PhraseEnum SUBORDINATING_CONJUNCTION
-
PARTICLE
public static final PhraseEnum PARTICLE
-
INTERJECTION
public static final PhraseEnum INTERJECTION
-
CONJUNCTION_PHRASE
public static final PhraseEnum CONJUNCTION_PHRASE
-
UNLIKE_COODINATED_PHRASE
public static final PhraseEnum UNLIKE_COODINATED_PHRASE
-
LIST_MARKER
public static final PhraseEnum LIST_MARKER
-
-
Method Detail
-
values
public static PhraseEnum[] 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 (PhraseEnum c : PhraseEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PhraseEnum valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
asNodeTypeName
public String asNodeTypeName()
-
fromString
public static PhraseEnum fromString(String text)
-
-