- java.lang.Object
-
- java.lang.Enum<TextElementType>
-
- com.pervasive.datarush.analytics.text.TextElementType
-
- All Implemented Interfaces:
Serializable
,Comparable<TextElementType>
public enum TextElementType extends Enum<TextElementType>
Enumeration of the possible text and character groupings.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSequenceType()
Get whether this type is a complex or atomic type.static TextElementType
valueOf(String name)
Returns the enum constant of this type with the specified name.static TextElementType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WORD
public static final TextElementType WORD
-
PHRASE
public static final TextElementType PHRASE
-
SENTENCE
public static final TextElementType SENTENCE
-
PARAGRAPH
public static final TextElementType PARAGRAPH
-
SECTION
public static final TextElementType SECTION
-
CHAPTER
public static final TextElementType CHAPTER
-
DOCUMENT
public static final TextElementType DOCUMENT
-
UNKNOWN
public static final TextElementType UNKNOWN
-
-
Method Detail
-
values
public static TextElementType[] 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 (TextElementType c : TextElementType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TextElementType 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
-
isSequenceType
public boolean isSequenceType()
Get whether this type is a complex or atomic type.- Returns:
- true if is a complex type
-
-