Package org.opentrafficsim.editor
Enum Class DocumentReader.NodeAnnotation
java.lang.Object
java.lang.Enum<DocumentReader.NodeAnnotation>
org.opentrafficsim.editor.DocumentReader.NodeAnnotation
- All Implemented Interfaces:
Serializable,Comparable<DocumentReader.NodeAnnotation>,Constable
- Enclosing class:
- DocumentReader
Types of annotation elements the
DocumentReader can read. This is a combination of the element name (e.g.
xsd:appinfo) and the source name.
<xsd:sequence>
<xsd:annotation>
<xsd:appinfo source="name">annotates the sequence</xsd:appinfo>
</xsd:annotation>
</xsd:sequence>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionElement xsd:appinfo.Element xsd:appinfo.Element xsd:documentation. -
Method Summary
Modifier and TypeMethodDescriptionReturns an annotation value.Returns the enum constant of this class with the specified name.static DocumentReader.NodeAnnotation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DESCRIPTION
Element xsd:documentation. -
APPINFO_NAME
Element xsd:appinfo. -
APPINFO_PATTERN
Element xsd:appinfo.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns an annotation value. These are defined as below, for either xsd:appinfo or xsd:documentation. All space-like characters are replaced by blanks, and consecutive blanks are removed.<xsd:sequence> <xsd:annotation> <xsd:appinfo source="name">annotates the sequence</xsd:appinfo> </xsd:annotation> </xsd:sequence>- Parameters:
node- node, either xsd:element or xsd:attribute.- Returns:
- annotation value, empty if not found.
-