public class XMLElementNode extends Object implements INode
Element
) to a CAF tree node (INode
),
auto-generating a unique id for each element in the tree.
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 List |
m_children
Deprecated.
Lazily created by
XMLElementNode.getChildren() . |
protected Element |
m_element
Deprecated.
|
protected String |
m_id
Deprecated.
Auto-generated id.
|
protected INode |
m_parent
Deprecated.
Null if root.
|
Constructor and Description |
---|
XMLElementNode(Element element)
Deprecated.
Adapts W3C DOM element (and element tree below it) to a CAF tree node.
|
protected Element m_element
protected String m_id
protected INode m_parent
protected List m_children
XMLElementNode.getChildren()
.public XMLElementNode(Element element)
element
- W3C DOM element to adapt.public INode getParent()
INode
public List getChildren()
INode
INode
children, in order.
Empty list (non-null) for leaf nodes.getChildren
in interface INode