Class XmlSchemaPathManager<U,V>
java.lang.Object
org.apache.ws.commons.schema.docpath.XmlSchemaPathManager<U,V>
Factory for creating
XmlSchemaPathNodes. This allows for recycling
and abstracts away the complexity of walking through an XML Schema.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayList<XmlSchemaDocumentNode<U>> private ArrayList<XmlSchemaPathNode<U, V>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) XmlSchemaPathNode<U, V> addChildNodeToPath(XmlSchemaPathNode<U, V> startNode, int branchIndex) (package private) XmlSchemaPathNode<U, V> addParentSiblingOrContentNodeToPath(XmlSchemaPathNode<U, V> startNode, XmlSchemaPathNode.Direction direction) (package private) voidclear()(package private) XmlSchemaPathNode<U, V> clone(XmlSchemaPathNode<U, V> original) private XmlSchemaDocumentNode<U> createDocumentNode(XmlSchemaDocumentNode<U> parent, XmlSchemaStateMachineNode state) private XmlSchemaPathNode<U, V> createPathNode(XmlSchemaPathNode.Direction direction, XmlSchemaPathNode<U, V> previous, XmlSchemaStateMachineNode state) (package private) XmlSchemaPathNode<U, V> createStartPathNode(XmlSchemaPathNode.Direction direction, XmlSchemaStateMachineNode state) (package private) voidfollowPath(XmlSchemaPathNode<U, V> startNode) Follows the path starting atstartNode, creatingXmlSchemaDocumentNodes and linking them along the way.(package private) void(package private) voidrecyclePathNode(XmlSchemaPathNode<U, V> toRecycle) Recyles the providedXmlSchemaPathNodeand all of the nodes that follow it.(package private) voidunfollowPath(XmlSchemaPathNode<U, V> startNode)
-
Field Details
-
unusedPathNodes
-
unusedDocNodes
-
-
Constructor Details
-
XmlSchemaPathManager
XmlSchemaPathManager()Constructs the document path node factory.
-
-
Method Details
-
createStartPathNode
XmlSchemaPathNode<U,V> createStartPathNode(XmlSchemaPathNode.Direction direction, XmlSchemaStateMachineNode state) -
addParentSiblingOrContentNodeToPath
XmlSchemaPathNode<U,V> addParentSiblingOrContentNodeToPath(XmlSchemaPathNode<U, V> startNode, XmlSchemaPathNode.Direction direction) -
addChildNodeToPath
-
recyclePathNode
Recyles the providedXmlSchemaPathNodeand all of the nodes that follow it. Unlinks from its previous node. -
clone
-
followPath
Follows the path starting atstartNode, creatingXmlSchemaDocumentNodes and linking them along the way.- Parameters:
startNode- The node to start building the tree from.
-
unfollowPath
-
clear
void clear() -
createPathNode
private XmlSchemaPathNode<U,V> createPathNode(XmlSchemaPathNode.Direction direction, XmlSchemaPathNode<U, V> previous, XmlSchemaStateMachineNode state) -
createDocumentNode
private XmlSchemaDocumentNode<U> createDocumentNode(XmlSchemaDocumentNode<U> parent, XmlSchemaStateMachineNode state) -
recycleDocumentNode
-