Package net.sf.okapi.steps.tokenization
Enum ITokenizer.TokenType
- java.lang.Object
-
- java.lang.Enum<ITokenizer.TokenType>
-
- net.sf.okapi.steps.tokenization.ITokenizer.TokenType
-
- All Implemented Interfaces:
Serializable,Comparable<ITokenizer.TokenType>
- Enclosing interface:
- ITokenizer
public static enum ITokenizer.TokenType extends Enum<ITokenizer.TokenType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ABBREVIATIONCURRENCYDATEEMAILEMOJIEMOTICONHYPHENATED_WORDIDEOGRAMINTERNETKANAMARKUPNUMBEROTHER_SYMBOLPUNCTUATIONTIMEWHITESPACEWORD
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()voidsetDescription(String description)static ITokenizer.TokenTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ITokenizer.TokenType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
WORD
public static final ITokenizer.TokenType WORD
-
HYPHENATED_WORD
public static final ITokenizer.TokenType HYPHENATED_WORD
-
NUMBER
public static final ITokenizer.TokenType NUMBER
-
WHITESPACE
public static final ITokenizer.TokenType WHITESPACE
-
PUNCTUATION
public static final ITokenizer.TokenType PUNCTUATION
-
DATE
public static final ITokenizer.TokenType DATE
-
TIME
public static final ITokenizer.TokenType TIME
-
CURRENCY
public static final ITokenizer.TokenType CURRENCY
-
ABBREVIATION
public static final ITokenizer.TokenType ABBREVIATION
-
MARKUP
public static final ITokenizer.TokenType MARKUP
-
EMAIL
public static final ITokenizer.TokenType EMAIL
-
INTERNET
public static final ITokenizer.TokenType INTERNET
-
EMOTICON
public static final ITokenizer.TokenType EMOTICON
-
EMOJI
public static final ITokenizer.TokenType EMOJI
-
OTHER_SYMBOL
public static final ITokenizer.TokenType OTHER_SYMBOL
-
IDEOGRAM
public static final ITokenizer.TokenType IDEOGRAM
-
KANA
public static final ITokenizer.TokenType KANA
-
-
Method Detail
-
values
public static ITokenizer.TokenType[] 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 (ITokenizer.TokenType c : ITokenizer.TokenType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ITokenizer.TokenType 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
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
-