Enum Class IndexTokenType
- All Implemented Interfaces:
Serializable,Comparable<IndexTokenType>,Constable
Token types produced by
IndexScanner.
Only the tokens needed for workspace Bloom-index collection are included. The scanner skips everything else (text content, end tags, comments, CDATA) without allocating any objects.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAttribute local name (namespace prefix stripped).Attribute value with surrounding quotes stripped.DOCTYPE public identifier — the first quoted string afterPUBLIC.DOCTYPE system identifier — the filename afterSYSTEMor the second quoted string afterPUBLIC.End of stream — no more tokens.Processing-instruction content — everything between the PI name and the closing?>, with leading whitespace stripped.Processing-instruction name, e.g.Local name of a start tag (namespace prefix stripped). -
Method Summary
Modifier and TypeMethodDescriptionstatic IndexTokenTypeReturns the enum constant of this class with the specified name.static IndexTokenType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PI_NAME
Processing-instruction name, e.g.xml-modelin<?xml-model href="schema.xsd"?>. Always followed immediately byPI_CONTENT. -
PI_CONTENT
Processing-instruction content — everything between the PI name and the closing?>, with leading whitespace stripped. Example:href="schema.xsd" type="application/xml". -
START_TAG
Local name of a start tag (namespace prefix stripped). Example:elementfor<xs:element>. -
ATTRIBUTE_NAME
Attribute local name (namespace prefix stripped). Always followed immediately byATTRIBUTE_VALUEwhen the attribute has a quoted value; otherwise the value is absent and the next token belongs to the same element. -
ATTRIBUTE_VALUE
Attribute value with surrounding quotes stripped. Line/column position is of the value content (after the opening quote). -
DOCTYPE_SYSTEM_ID
DOCTYPE system identifier — the filename afterSYSTEMor the second quoted string afterPUBLIC. -
DOCTYPE_PUBLIC_ID
DOCTYPE public identifier — the first quoted string afterPUBLIC. Usually followed by aDOCTYPE_SYSTEM_ID. -
EOS
End of stream — no more tokens.
-
-
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
-