XMLStreamConstants (Java SE 15 & JDK 15) (original) (raw)
All Known Subinterfaces:
[Attribute](events/Attribute.html "interface in javax.xml.stream.events")
, [Characters](events/Characters.html "interface in javax.xml.stream.events")
, [Comment](events/Comment.html "interface in javax.xml.stream.events")
, [DTD](events/DTD.html "interface in javax.xml.stream.events")
, [EndDocument](events/EndDocument.html "interface in javax.xml.stream.events")
, [EndElement](events/EndElement.html "interface in javax.xml.stream.events")
, [EntityDeclaration](events/EntityDeclaration.html "interface in javax.xml.stream.events")
, [EntityReference](events/EntityReference.html "interface in javax.xml.stream.events")
, [Namespace](events/Namespace.html "interface in javax.xml.stream.events")
, [NotationDeclaration](events/NotationDeclaration.html "interface in javax.xml.stream.events")
, [ProcessingInstruction](events/ProcessingInstruction.html "interface in javax.xml.stream.events")
, [StartDocument](events/StartDocument.html "interface in javax.xml.stream.events")
, [StartElement](events/StartElement.html "interface in javax.xml.stream.events")
, [XMLEvent](events/XMLEvent.html "interface in javax.xml.stream.events")
, [XMLStreamReader](XMLStreamReader.html "interface in javax.xml.stream")
All Known Implementing Classes:
[StreamReaderDelegate](util/StreamReaderDelegate.html "class in javax.xml.stream.util")
public interface XMLStreamConstants
This interface declares the constants used in this API. Numbers in the range 0 to 256 are reserved for the specification, user defined events must use event codes outside that range.
Since:
1.6
Field Summary
Fields
Modifier and Type | Field | Description |
---|---|---|
static int | ATTRIBUTE | Indicates an event is an attribute |
static int | CDATA | Indicates an event is a CDATA section |
static int | CHARACTERS | Indicates an event is characters |
static int | COMMENT | Indicates an event is a comment |
static int | DTD | Indicates an event is a DTD |
static int | END_DOCUMENT | Indicates an event is an end document |
static int | END_ELEMENT | Indicates an event is an end element |
static int | ENTITY_DECLARATION | Indicates a Entity Declaration |
static int | ENTITY_REFERENCE | Indicates an event is an entity reference |
static int | NAMESPACE | Indicates the event is a namespace declaration |
static int | NOTATION_DECLARATION | Indicates a Notation |
static int | PROCESSING_INSTRUCTION | Indicates an event is a processing instruction |
static int | SPACE | The characters are white space (see [XML], 2.10 "White Space Handling"). |
static int | START_DOCUMENT | Indicates an event is a start document |
static int | START_ELEMENT | Indicates an event is a start element |
Field Details
START_ELEMENT
static final int START_ELEMENT
Indicates an event is a start element
See Also:
StartElement, Constant Field ValuesEND_ELEMENT
static final int END_ELEMENT
Indicates an event is an end element
See Also:
EndElement, Constant Field ValuesPROCESSING_INSTRUCTION
static final int PROCESSING_INSTRUCTION
Indicates an event is a processing instruction
See Also:
ProcessingInstruction, Constant Field ValuesCHARACTERS
static final int CHARACTERS
Indicates an event is characters
See Also:
Characters, Constant Field ValuesSPACE
static final int SPACE
The characters are white space (see [XML], 2.10 "White Space Handling"). Events are only reported as SPACE if they are ignorable white space. Otherwise they are reported as CHARACTERS.
See Also:
Characters, Constant Field ValuesSTART_DOCUMENT
static final int START_DOCUMENT
Indicates an event is a start document
See Also:
StartDocument, Constant Field ValuesEND_DOCUMENT
static final int END_DOCUMENT
Indicates an event is an end document
See Also:
EndDocument, Constant Field ValuesENTITY_REFERENCE
static final int ENTITY_REFERENCE
Indicates an event is an entity reference
See Also:
EntityReference, Constant Field ValuesATTRIBUTE
static final int ATTRIBUTE
Indicates an event is an attribute
See Also:
Attribute, Constant Field ValuesDTD
static final int DTD
Indicates an event is a DTD
See Also:
DTD, Constant Field ValuesCDATA
static final int CDATA
Indicates an event is a CDATA section
See Also:
Characters, Constant Field ValuesNAMESPACE
static final int NAMESPACE
Indicates the event is a namespace declaration
See Also:
Namespace, Constant Field ValuesNOTATION_DECLARATION
static final int NOTATION_DECLARATION
Indicates a Notation
See Also:
NotationDeclaration, Constant Field ValuesENTITY_DECLARATION
static final int ENTITY_DECLARATION
Indicates a Entity Declaration
See Also:
NotationDeclaration, Constant Field Values