public static enum PullProvider.Event extends java.lang.Enum<PullProvider.Event>
| Enum 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.
|
| Modifier and Type | Method and Description |
|---|---|
static PullProvider.Event |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PullProvider.Event[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PullProvider.Event START_OF_INPUT
public static final PullProvider.Event ATOMIC_VALUE
public static final PullProvider.Event START_DOCUMENT
public static final PullProvider.Event END_DOCUMENT
public static final PullProvider.Event 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 PullProvider.Event END_ELEMENT
public static final PullProvider.Event ATTRIBUTE
PullProvider.getAttributes() method.public static final PullProvider.Event NAMESPACE
PullProvider.getNamespaceDeclarations() method.public static final PullProvider.Event TEXT
public static final PullProvider.Event COMMENT
public static final PullProvider.Event PROCESSING_INSTRUCTION
public static final PullProvider.Event END_OF_INPUT
public static PullProvider.Event[] values()
for (PullProvider.Event c : PullProvider.Event.values()) System.out.println(c);
public static PullProvider.Event 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-2021 Saxonica Limited. All rights reserved.