public static enum CharacterCategoryPatternFunction.PatternType extends Enum<CharacterCategoryPatternFunction.PatternType>
| Enum Constant and Description |
|---|
ONE_PER_CHAR
The standard pattern, where one category abbreviation is added to the feature value for each
character in the text.
|
REPEATS_AS_KLEENE_PLUS
Similar to REPEATS_MERGED, but distinguishes between the same category appearing once and
more than once in a row.
|
REPEATS_MERGED
A simplified pattern, where if the same category appears many times in a row, the category is
added to the feature value only once.
|
| Modifier and Type | Method and Description |
|---|---|
static CharacterCategoryPatternFunction.PatternType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CharacterCategoryPatternFunction.PatternType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CharacterCategoryPatternFunction.PatternType ONE_PER_CHAR
public static final CharacterCategoryPatternFunction.PatternType REPEATS_AS_KLEENE_PLUS
public static final CharacterCategoryPatternFunction.PatternType REPEATS_MERGED
public static CharacterCategoryPatternFunction.PatternType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic static CharacterCategoryPatternFunction.PatternType[] values()
for (CharacterCategoryPatternFunction.PatternType c : CharacterCategoryPatternFunction.PatternType.values()) System.out.println(c);
Copyright © 2014. All rights reserved.