public class XMLDOMNode2 extends BaseXMLNode
Node
to a CAF tree INode
and CAF data IContentProvider
(as a IContentProvider
,
binding-expression access to the node's properties can be optimized).
Nodes without an id are ignored.Modifier and Type | Field and Description |
---|---|
protected Node |
m_domNode |
protected String |
m_rowIdXPath |
m_children, m_id, m_parent, m_xpathAPI, m_xpathCache
Modifier | Constructor and Description |
---|---|
|
XMLDOMNode2(Node domNode,
String rowIdXPath)
Adapts W3C DOM node (and tree below it) to a CAF tree node.
|
protected |
XMLDOMNode2(Node domNode,
String rowIdXPath,
org.apache.xpath.CachedXPathAPI xpathAPI) |
Modifier and Type | Method and Description |
---|---|
List<INode> |
getChildren()
List of
INode children, in order. |
String |
getId()
Row id.
|
protected Node |
getXMLNode()
Wrapped DOM node.
|
getData, getParent, getPropertyKeys, getType, getValue, getXPathAPI, getXPathValue, hasProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public XMLDOMNode2(Node domNode, String rowIdXPath)
domNode
- W3C DOM node to adapt.rowIdXPath
- XPath to evaluate to determine each node's id.public List<INode> getChildren()
INode
INode
children, in order.
Empty list (non-null) for leaf nodes.protected Node getXMLNode()
BaseXMLNode
getXMLNode
in class BaseXMLNode