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<INode> |
m_children
Deprecated.
Lazily created by
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.
|
Modifier and Type | Method and Description |
---|---|
List<INode> |
getChildren()
Deprecated.
List of
INode children, in order. |
Object |
getData()
Deprecated.
Row data.
|
String |
getId()
Deprecated.
Row id.
|
INode |
getParent()
Deprecated.
Node parent, or null for root.
|
protected Element m_element
protected String m_id
protected INode m_parent
protected List<INode> m_children
getChildren()
.public XMLElementNode(Element element)
element
- W3C DOM element to adapt.public INode getParent()
INode