public class StructureWalker
extends java.lang.Object
SchemaNodeMap
that is accessible
via XPath keys, and that will hold important information about the Document
elements (see SchemaNode
. For example, the
SchemaNodeMap (that is enabled by an StructureWalker) can provide type
definition and validation information, defaults, etc that are accessible via
XPath keysModifier and Type | Field and Description |
---|---|
org.dom4j.Document |
instanceDocument
The instance document created by Structure Walker
|
SchemaNodeMap |
schemaNodeMap
Mapping from xpath to schemaNode instance
|
Constructor and Description |
---|
StructureWalker(org.dom4j.Element schemaRootElement,
SchemaHelper schemaHelper)
Constructor for the StructureWalker object
|
Modifier and Type | Method and Description |
---|---|
boolean |
getNamespaceEnabled()
Gets the namespaceEnabled attribute of the StructureWalker object
|
java.lang.String |
getPath(org.dom4j.Attribute a)
Gets the path attribute of the StructureWalker object
|
java.lang.String |
getPath(org.dom4j.Element e)
Gets the path attribute of the StructureWalker object
|
java.lang.String |
getPath(org.dom4j.Node n)
get the XPath to this element relative to the given context currently, this
method will print an XPath that is of the form /itemRecord/educational/....
|
static void |
setDebug(boolean bool)
Sets the debug attribute of the StructureWalker class
|
public SchemaNodeMap schemaNodeMap
public org.dom4j.Document instanceDocument
public StructureWalker(org.dom4j.Element schemaRootElement, SchemaHelper schemaHelper) throws SchemaHelperException
schemaRootElement
- Description of the ParameterschemaHelper
- Description of the ParameterSchemaHelperException
- NOT YET DOCUMENTEDpublic boolean getNamespaceEnabled()
public java.lang.String getPath(org.dom4j.Node n)
n
- Description of the Parameterpublic java.lang.String getPath(org.dom4j.Attribute a)
a
- Description of the Parameterpublic java.lang.String getPath(org.dom4j.Element e)
e
- Description of the Parameterpublic static void setDebug(boolean bool)
bool
- The new debug value