Package org.icij.datashare.text.nlp
Enum Pipeline.Type
- java.lang.Object
-
- java.lang.Enum<Pipeline.Type>
-
- org.icij.datashare.text.nlp.Pipeline.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Pipeline.Type>,EnumTypeToken
- Enclosing interface:
- Pipeline
public static enum Pipeline.Type extends Enum<Pipeline.Type> implements EnumTypeToken
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Optional<Pipeline.Type>fromClassName(String className)static Pipeline.TypefromCode(int code)StringgetClassName()static Pipeline.Typeparse(String valueName)static Set<Pipeline.Type>parseAll(String comaSeparatedTypes)static Pipeline.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Pipeline.Type[]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 interface org.icij.datashare.reflect.EnumTypeToken
buildClassName
-
-
-
-
Enum Constant Detail
-
TEST
public static final Pipeline.Type TEST
-
CORENLP
public static final Pipeline.Type CORENLP
-
GATENLP
public static final Pipeline.Type GATENLP
-
IXAPIPE
public static final Pipeline.Type IXAPIPE
-
MITIE
public static final Pipeline.Type MITIE
-
OPENNLP
public static final Pipeline.Type OPENNLP
-
EMAIL
public static final Pipeline.Type EMAIL
-
-
Method Detail
-
values
public static Pipeline.Type[] 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 (Pipeline.Type c : Pipeline.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Pipeline.Type 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
-
fromCode
public static Pipeline.Type fromCode(int code)
-
getClassName
public String getClassName()
- Specified by:
getClassNamein interfaceEnumTypeToken
-
parse
public static Pipeline.Type parse(String valueName)
-
fromClassName
public static Optional<Pipeline.Type> fromClassName(String className)
-
parseAll
public static Set<Pipeline.Type> parseAll(String comaSeparatedTypes)
-
-