|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.xml.schema.StructureWalker
public class StructureWalker
Creates an empty "XPath-equivant" instance document Document based on a
venetian-blind-type XML Schema. Provides an intermediate structure for
building a 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 keys
Field Summary | |
---|---|
Document |
instanceDocument
The instance document created by Structure Walker |
SchemaNodeMap |
schemaNodeMap
Mapping from xpath to schemaNode instance |
Constructor Summary | |
---|---|
StructureWalker(Element schemaRootElement,
SchemaHelper schemaHelper)
Constructor for the StructureWalker object |
Method Summary | |
---|---|
boolean |
getNamespaceEnabled()
Gets the namespaceEnabled attribute of the StructureWalker object |
String |
getPath(Attribute a)
Gets the path attribute of the StructureWalker object |
String |
getPath(Element e)
Gets the path attribute of the StructureWalker object |
String |
getPath(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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public SchemaNodeMap schemaNodeMap
public Document instanceDocument
Constructor Detail |
---|
public StructureWalker(Element schemaRootElement, SchemaHelper schemaHelper) throws SchemaHelperException
schemaRootElement
- Description of the ParameterschemaHelper
- Description of the Parameter
SchemaHelperException
- NOT YET DOCUMENTEDMethod Detail |
---|
public boolean getNamespaceEnabled()
public String getPath(Node n)
n
- Description of the Parameter
public String getPath(Attribute a)
a
- Description of the Parameter
public String getPath(Element e)
e
- Description of the Parameter
public static void setDebug(boolean bool)
bool
- The new debug value
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |