public enum PullEvent extends java.lang.Enum<PullEvent>
PullProvider
interfaceEnum Constant and Description |
---|
ATOMIC_VALUE
ATOMIC_VALUE is notified when the PullProvider is reading a sequence of items,
and one of the items is an atomic value rather than a node.
|
ATTRIBUTE
The ATTRIBUTE event is notified only for an attribute node that appears in its own right
as a top-level item in the sequence being read.
|
COMMENT
A COMMENT event is notified for a comment node, which may be either a top-level
comment or one nested within an element or document node.
|
END_DOCUMENT
END_DOCUMENT is notified at the end of processing a document node, that is,
after all the descendants of the document node have been notified.
|
END_ELEMENT
END_ELEMENT is notified at the end of an element node, that is, after all the children
and descendants of the element have either been processed or skipped.
|
END_OF_INPUT
The END_OF_INPUT event is returned to indicate the end of the sequence being read.
|
NAMESPACE
The NAMESPACE event is notified only for a namespace node that appears in its own right
as a top-level item in the sequence being read.
|
PROCESSING_INSTRUCTION
A PROCESSING_INSTRUCTION event is notified for a processing instruction node,
which may be either a top-level comment or one nested within an element or document node.
|
START_DOCUMENT
START_DOCUMENT is notified when a document node is encountered.
|
START_ELEMENT
START_ELEMENT is notified when an element node is encountered.
|
START_OF_INPUT
START_OF_INPUT is the initial state when the PullProvider is instantiated.
|
TEXT
A TEXT event is notified for a text node.
|
WORK_IN_PROGRESS
The WORK_IN_PROGRESS event should never be returned to the caller; it represents
an intermediate state during parsing that is not yet ready for delivery to the
application
|
Modifier and Type | Method and Description |
---|---|
static PullEvent |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PullEvent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PullEvent START_OF_INPUT
public static final PullEvent ATOMIC_VALUE
public static final PullEvent START_DOCUMENT
public static final PullEvent END_DOCUMENT
public static final PullEvent START_ELEMENT
Following the notification of START_ELEMENT, the client may obtain information about the element node, such as its name and type annotation. The client may also call getAttributes() to obtain information about the attributes of the element node, and/or getNamespaceDeclarations() to get information about the namespace declarations. The client may then do one of the following:
public static final PullEvent END_ELEMENT
public static final PullEvent ATTRIBUTE
PullProvider.getAttributes()
method.public static final PullEvent NAMESPACE
PullProvider.getNamespaceDeclarations()
method.public static final PullEvent TEXT
public static final PullEvent COMMENT
public static final PullEvent PROCESSING_INSTRUCTION
public static final PullEvent END_OF_INPUT
public static final PullEvent WORK_IN_PROGRESS
public static PullEvent[] values()
for (PullEvent c : PullEvent.values()) System.out.println(c);
public static PullEvent 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 nullCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.