public class XMLElementNode2 extends BaseXMLNode
Element
to a CAF tree INode
and CAF data IContentProvider
(as a IContentProvider
,
binding-expression access to the node's properties can be optimized).
A unique id for each element in the tree is auto-generated.
If the tree's content changes frequently,
you should use a XMLDOMNode
instead,
using a xpath expression to specify node ids.Modifier and Type | Field and Description |
---|---|
protected Element |
m_element |
m_children, m_id, m_parent, m_xpathAPI, m_xpathCache
Constructor and Description |
---|
XMLElementNode2(Element element)
Adapts W3C DOM element (and element tree below it) to a CAF tree node.
|
XMLElementNode2(Element element,
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
protected Element m_element
public XMLElementNode2(Element element)
element
- W3C DOM element to adapt.public XMLElementNode2(Element element, org.apache.xpath.CachedXPathAPI xpathAPI)
public List<INode> getChildren()
INode
INode
children, in order.
Empty list (non-null) for leaf nodes.protected Node getXMLNode()
BaseXMLNode
getXMLNode
in class BaseXMLNode