public final class XmlSchemaPathNode<U,V> extends Object
XmlSchemaPathFinder
walks through an XML document, it builds
XmlSchemaPathNode
s representing the path walked, and
XmlSchemaDocumentNode
s representing where the XML document's elements
fall in the XML Schema's sequences, choices, and all groups.Modifier and Type | Class and Description |
---|---|
static class |
XmlSchemaPathNode.Direction
Represents a path's direction.
|
Modifier and Type | Method and Description |
---|---|
XmlSchemaPathNode.Direction |
getDirection()
The direction this path travels.
|
int |
getDocIteration()
Shortcut for calling
getDocumentNode().getIteration() . |
XmlSchemaDocumentNode<U> |
getDocumentNode()
Retrieves the
XmlSchemaDocumentNode this
XmlSchemaPathNode is visiting. |
int |
getIteration()
The iteration through the underlying
XmlSchemaDocumentNode . |
long |
getMaxOccurs()
Shortcut for calling
getStateMachineNode().getMaxOccurs() . |
long |
getMinOccurs()
Shortcut for calling
getStateMachineNode().getMinOccurs() . |
XmlSchemaPathNode<U,V> |
getNext()
The next node in the path, or
null if at the end of the
path. |
XmlSchemaPathNode<U,V> |
getPrevious()
The previous node in the path, or
null if at the beginning
of the path. |
XmlSchemaStateMachineNode |
getStateMachineNode()
Retrieves the
XmlSchemaStateMachineNode representing the XML
Schema that this XmlSchemaPathNode is visiting. |
V |
getUserDefinedContent()
Retrieves any user-defined content attached to this
XmlSchemaPathNode , or null if none. |
void |
setUserDefinedContent(V content)
Attaches user-defined content to this
XmlSchemaPathNode . |
public XmlSchemaDocumentNode<U> getDocumentNode()
XmlSchemaDocumentNode
this
XmlSchemaPathNode
is visiting.public XmlSchemaStateMachineNode getStateMachineNode()
XmlSchemaStateMachineNode
representing the XML
Schema that this XmlSchemaPathNode
is visiting. This is
equivalent to calling
getDocumentNode().getStateMachineNode()
.public XmlSchemaPathNode.Direction getDirection()
public int getIteration()
XmlSchemaDocumentNode
. If
the path traverses the same XmlSchemaDocumentNode
twice,
XmlSchemaDocumentNode.getIteration()
will return two, and one
getIteration()
will return one, while the other will return two.public long getMinOccurs()
getStateMachineNode().getMinOccurs()
.XmlSchemaStateMachineNode.getMinOccurs()
public long getMaxOccurs()
getStateMachineNode().getMaxOccurs()
.XmlSchemaStateMachineNode.getMaxOccurs()
public int getDocIteration()
getDocumentNode().getIteration()
.XmlSchemaDocumentNode.getIteration()
public XmlSchemaPathNode<U,V> getPrevious()
null
if at the beginning
of the path.public XmlSchemaPathNode<U,V> getNext()
null
if at the end of the
path.public V getUserDefinedContent()
XmlSchemaPathNode
, or null
if none.public void setUserDefinedContent(V content)
XmlSchemaPathNode
.Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.