Class XMLDOMNode2
java.lang.Object
com.webmethods.caf.faces.data.tree.object.BaseXMLNode
com.webmethods.caf.faces.data.tree.object.XMLDOMNode2
- All Implemented Interfaces:
IContentProvider
,INode
Adapts a W3C DOM
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.-
Field Summary
FieldsFields inherited from class com.webmethods.caf.faces.data.tree.object.BaseXMLNode
m_children, m_id, m_parent, m_xpathAPI, m_xpathCache
-
Constructor Summary
ConstructorsModifierConstructorDescriptionXMLDOMNode2
(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) -
Method Summary
Methods inherited from class com.webmethods.caf.faces.data.tree.object.BaseXMLNode
getData, getParent, getPropertyKeys, getType, getValue, getXPathAPI, getXPathValue, hasProperty
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.webmethods.caf.faces.data.IContentProvider
toString
-
Field Details
-
m_domNode
-
m_rowIdXPath
-
-
Constructor Details
-
XMLDOMNode2
Adapts W3C DOM node (and tree below it) to a CAF tree node.- Parameters:
domNode
- W3C DOM node to adapt.rowIdXPath
- XPath to evaluate to determine each node's id.
-
XMLDOMNode2
-
-
Method Details
-
getId
Description copied from interface:INode
Row id. -
getChildren
Description copied from interface:INode
List ofINode
children, in order. Empty list (non-null) for leaf nodes. -
getXMLNode
Description copied from class:BaseXMLNode
Wrapped DOM node.- Specified by:
getXMLNode
in classBaseXMLNode
-