|
|||||||||
| Home >> All >> com >> aendvari >> common >> model >> [ xalan overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.aendvari.common.model.xalan
Class XalanModelTree

java.lang.Objectcom.aendvari.common.model.xalan.XalanModelTree
- All Implemented Interfaces:
- com.aendvari.common.model.ModelTree
- public class XalanModelTree
- extends java.lang.Object
- implements com.aendvari.common.model.ModelTree
- extends java.lang.Object
A Xalan XML implementation of the com.aendvari.common.model.ModelNode interface.
| Field Summary | |
protected org.w3c.dom.Document |
modelTreeDocument
The document that represents the model tree |
protected boolean |
modified
Tracks whether the XML DOM has been modified. |
protected org.apache.xpath.XPath |
xpath
XPath query. |
protected org.apache.xpath.XPathContext |
xpathContext
Runtime context for XPath queries. |
protected org.apache.xpath.compiler.XPathParser |
xpathParser
XPath expression parser. |
| Constructor Summary | |
XalanModelTree()
Constructs a XalanModelTree instance. |
|
XalanModelTree(org.w3c.dom.Document setModelTree)
Constructs a XalanModelNode instance wrapping the supplied org.w3c.dom.Document. |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
modelTreeDocument
protected org.w3c.dom.Document modelTreeDocument
- The document that represents the model tree
modified
protected boolean modified
- Tracks whether the XML DOM has been modified.
xpathContext
protected org.apache.xpath.XPathContext xpathContext
- Runtime context for XPath queries.
xpathParser
protected org.apache.xpath.compiler.XPathParser xpathParser
- XPath expression parser.
xpath
protected org.apache.xpath.XPath xpath
- XPath query.
| Constructor Detail |
XalanModelTree
public XalanModelTree()
throws com.aendvari.common.model.ModelException
- Constructs a
XalanModelTreeinstance.
XalanModelTree
public XalanModelTree(org.w3c.dom.Document setModelTree)
- Constructs a
XalanModelNodeinstance wrapping the supplied org.w3c.dom.Document.
| Method Detail |
setModified
public void setModified()
- States that the XML DOM has been modified.
createXPathObjects
protected void createXPathObjects()
throws com.aendvari.common.model.ModelException
- Creates objects for performing XPath queries.
setModelTree
public void setModelTree(org.w3c.dom.Document setModelTree)
- Sets the internal XML org.w3c.dom.Document object wrapped by this com.aendvari.common.model.ModelTree.
getModelTree
public org.w3c.dom.Document getModelTree()
- Returns the internal XML org.w3c.dom.Document object wrapped by this com.aendvari.common.model.ModelTree.
getRootNode
public com.aendvari.common.model.ModelNode getRootNode()
- Returns the com.aendvari.common.model.ModelNode of the DOM model space.
- Specified by:
getRootNodein interfacecom.aendvari.common.model.ModelTree
createNode
public com.aendvari.common.model.ModelNode createNode(java.lang.String name)
- Creates a com.aendvari.common.model.ModelNode object.
- Specified by:
createNodein interfacecom.aendvari.common.model.ModelTree
createTree
public com.aendvari.common.model.ModelTree createTree()
- Creates a new com.aendvari.common.model.ModelTree object.
- Specified by:
createTreein interfacecom.aendvari.common.model.ModelTree
createNode
public com.aendvari.common.model.ModelNode createNode(java.lang.String name, java.lang.String value)
- Creates a com.aendvari.common.model.ModelNode object with the supplied value.
- Specified by:
createNodein interfacecom.aendvari.common.model.ModelTree
getNode
public com.aendvari.common.model.ModelNode getNode(com.aendvari.common.model.ModelNode node, java.lang.String path) throws com.aendvari.common.model.ModelException
- Returns the com.aendvari.common.model.ModelNode using the path provided.
- Specified by:
getNodein interfacecom.aendvari.common.model.ModelTree
getNodes
public java.util.List getNodes(com.aendvari.common.model.ModelNode node, java.lang.String path) throws com.aendvari.common.model.ModelException
- Returns a
Listof com.aendvari.common.model.ModelNode's using the path provided.- Specified by:
getNodesin interfacecom.aendvari.common.model.ModelTree
loadFromFile
public void loadFromFile(java.lang.String xmlFile) throws com.aendvari.common.model.ModelParserException
- Replaces the current com.aendvari.common.model.ModelTree with the given XML.
- Specified by:
loadFromFilein interfacecom.aendvari.common.model.ModelTree
loadFromStream
public void loadFromStream(java.io.InputStream xmlStream) throws com.aendvari.common.model.ModelParserException
- Replaces the current com.aendvari.common.model.ModelTree with the given XML stream.
- Specified by:
loadFromStreamin interfacecom.aendvari.common.model.ModelTree
|
|||||||||
| Home >> All >> com >> aendvari >> common >> model >> [ xalan overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.aendvari.common.model.xalan.XalanModelTree