javax.xml.stream.XMLStreamConstants |
Known Indirect Subclasses
Attribute,
Characters,
Comment,
DTD,
EndDocument,
EndElement,
EntityDeclaration,
EntityReference,
Namespace,
NotationDeclaration,
ProcessingInstruction,
StartDocument,
StartElement,
StreamReaderDelegate,
XMLEvent,
XMLStreamReader
Attribute |
An interface that contains information about an attribute. |
Characters |
This describes the interface to Characters events. |
Comment |
An interface for comment events |
DTD |
This is the top level interface for events dealing with DTDs |
EndDocument |
A marker interface for the end of the document |
EndElement |
An interface for the end element event. |
EntityDeclaration |
An interface for handling Entity Declarations
This interface is used to record and report unparsed entity declarations. |
EntityReference |
An interface for handling Entity events. |
Namespace |
An interface that contains information about a namespace. |
NotationDeclaration |
An interface for handling Notation Declarations
Receive notification of a notation declaration event. |
ProcessingInstruction |
An interface that describes the data found in processing instructions |
StartDocument |
An interface for the start document event |
StartElement |
The StartElement interface provides access to information about
start elements. |
StreamReaderDelegate |
This is the base class for deriving an XMLStreamReader filter
This class is designed to sit between an XMLStreamReader and an
application's XMLStreamReader. |
XMLEvent |
This is the base event interface for handling markup events. |
XMLStreamReader |
The XMLStreamReader interface allows forward, read-only access to XML. |
|
Class Overview
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.
Constants
public
static
final
int
ATTRIBUTE
Indicates an event is an attribute
Constant Value:
10
(0x0000000a)
public
static
final
int
CDATA
Indicates an event is a CDATA section
Constant Value:
12
(0x0000000c)
public
static
final
int
CHARACTERS
Indicates an event is characters
Constant Value:
4
(0x00000004)
public
static
final
int
COMMENT
Indicates an event is a comment
Constant Value:
5
(0x00000005)
public
static
final
int
DTD
Indicates an event is a DTD
Constant Value:
11
(0x0000000b)
public
static
final
int
END_DOCUMENT
Indicates an event is an end document
Constant Value:
8
(0x00000008)
public
static
final
int
END_ELEMENT
Indicates an event is an end element
Constant Value:
2
(0x00000002)
public
static
final
int
ENTITY_DECLARATION
Indicates a Entity Declaration
Constant Value:
15
(0x0000000f)
public
static
final
int
ENTITY_REFERENCE
Indicates an event is an entity reference
Constant Value:
9
(0x00000009)
public
static
final
int
NAMESPACE
Indicates the event is a namespace declaration
Constant Value:
13
(0x0000000d)
public
static
final
int
NOTATION_DECLARATION
Constant Value:
14
(0x0000000e)
public
static
final
int
PROCESSING_INSTRUCTION
Indicates an event is a processing instruction
Constant Value:
3
(0x00000003)
public
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.
Constant Value:
6
(0x00000006)
public
static
final
int
START_DOCUMENT
Indicates an event is a start document
Constant Value:
7
(0x00000007)
public
static
final
int
START_ELEMENT
Indicates an event is a start element
Constant Value:
1
(0x00000001)