Package org.predict4all.nlp
Enum Separator
- java.lang.Object
-
- java.lang.Enum<Separator>
-
- org.predict4all.nlp.Separator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getId()
byte
getIdByte()
char
getOfficialChar()
java.lang.String
getOfficialCharString()
static Separator
getSeparatorById(byte id)
static Separator
getSeparatorFor(char c)
boolean
isSentenceSeparator()
static Separator
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Separator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SPACE
public static final Separator SPACE
-
EXCLAMATION
public static final Separator EXCLAMATION
-
QUESTION
public static final Separator QUESTION
-
POINT
public static final Separator POINT
-
NEWLINE
public static final Separator NEWLINE
-
TAB
public static final Separator TAB
-
COMMA
public static final Separator COMMA
-
APOSTROPHE
public static final Separator APOSTROPHE
-
LBRACKET
public static final Separator LBRACKET
-
RBRACKET
public static final Separator RBRACKET
-
SEMICOLON
public static final Separator SEMICOLON
-
QUOTE
public static final Separator QUOTE
-
EQUAL
public static final Separator EQUAL
-
OPEN_HOOK
public static final Separator OPEN_HOOK
-
CLOSE_HOOK
public static final Separator CLOSE_HOOK
-
INF_SUP
public static final Separator INF_SUP
-
SLASH
public static final Separator SLASH
-
BACKSLASH
public static final Separator BACKSLASH
-
HASH
public static final Separator HASH
-
TWOPOINT
public static final Separator TWOPOINT
-
CURRENCY_EURO_SYMBOL
public static final Separator CURRENCY_EURO_SYMBOL
-
PERCENT
public static final Separator PERCENT
-
HYPHEN
public static final Separator HYPHEN
-
PIPE
public static final Separator PIPE
-
OTHER
public static final Separator OTHER
-
-
Method Detail
-
values
public static Separator[] 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 (Separator c : Separator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Separator valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getId
public int getId()
-
getIdByte
public byte getIdByte()
-
getOfficialChar
public char getOfficialChar()
-
isSentenceSeparator
public boolean isSentenceSeparator()
-
getOfficialCharString
public java.lang.String getOfficialCharString()
-
getSeparatorFor
public static Separator getSeparatorFor(char c)
-
getSeparatorById
public static Separator getSeparatorById(byte id)
-
-