public enum TokenDefinitionLabelHandling extends java.lang.Enum<TokenDefinitionLabelHandling>
ReadWriteParameterNames.KEY_NEXML_TOKEN_DEFINITION_LABEL_METADATA
. It enumerates ways how the
properties SingleTokenDefinitionEvent.getTokenName()
and
LabeledEvent.getLabel()
are written to NeXML.ReadWriteParameterNames.KEY_NEXML_TOKEN_DEFINITION_LABEL_METADATA
,
NeXMLEventWriter
Enum Constant and Description |
---|
BOTH
Both the label and the token name stored in a
SingleTokenDefinitionEvent are written as metadata. |
DISCARDED
The label or the token name stored in a
SingleTokenDefinitionEvent are written as metadata,
if they were not written to the file as the value of an attribute of a state element. |
NEITHER
Neither the label nor the token name stored in a
SingleTokenDefinitionEvent are written as metadata. |
Modifier and Type | Method and Description |
---|---|
static TokenDefinitionLabelHandling |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TokenDefinitionLabelHandling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenDefinitionLabelHandling NEITHER
SingleTokenDefinitionEvent
are written as metadata.public static final TokenDefinitionLabelHandling BOTH
SingleTokenDefinitionEvent
are written as metadata.public static final TokenDefinitionLabelHandling DISCARDED
SingleTokenDefinitionEvent
are written as metadata,
if they were not written to the file as the value of an attribute of a state element.public static TokenDefinitionLabelHandling[] values()
for (TokenDefinitionLabelHandling c : TokenDefinitionLabelHandling.values()) System.out.println(c);
public static TokenDefinitionLabelHandling 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