public enum TokenTranslationStrategy extends java.lang.Enum<TokenTranslationStrategy>
ReadWriteParameterNames#KEY_NEXML_TOKEN_TRANSLATION_STRATEGY
.
It enumerates ways how tokens stored in a NeXML characters block of type standard
should be parsed.ReadWriteParameterNames#KEY_NEXML_TOKEN_TRANSLATION_STRATEGY
,
NeXMLEventReader
Enum Constant and Description |
---|
NEVER
Sequences consisting of symbols are parsed without change.
|
SYMBOL_TO_ID
Symbols are translated to according IDs.
|
SYMBOL_TO_LABEL
Symbols are translated to according labels, if no labels are present IDs are used.
|
Modifier and Type | Method and Description |
---|---|
static TokenTranslationStrategy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TokenTranslationStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenTranslationStrategy NEVER
public static final TokenTranslationStrategy SYMBOL_TO_ID
public static final TokenTranslationStrategy SYMBOL_TO_LABEL
public static TokenTranslationStrategy[] values()
for (TokenTranslationStrategy c : TokenTranslationStrategy.values()) System.out.println(c);
public static TokenTranslationStrategy valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null