com.webmethods.caf.faces.data.tree.object
Class XMLElementNode

java.lang.Object
  extended by com.webmethods.caf.faces.data.tree.object.XMLElementNode
All Implemented Interfaces:
INode

Deprecated. use for better performance

public class XMLElementNode
extends Object
implements INode

Adapts a W3C DOM element (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.


Field Summary
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 Summary
XMLElementNode(Element element)
          Deprecated. Adapts W3C DOM element (and element tree below it) to a CAF tree node.
 
Method Summary
 List 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_element

protected Element m_element
Deprecated. 

m_id

protected String m_id
Deprecated. 
Auto-generated id.


m_parent

protected INode m_parent
Deprecated. 
Null if root.


m_children

protected List m_children
Deprecated. 
Lazily created by XMLElementNode.getChildren().

Constructor Detail

XMLElementNode

public XMLElementNode(Element element)
Deprecated. 
Adapts W3C DOM element (and element tree below it) to a CAF tree node.

Parameters:
element - W3C DOM element to adapt.
Method Detail

getData

public Object getData()
Deprecated. 
Description copied from interface: INode
Row data.

Specified by:
getData in interface INode

getId

public String getId()
Deprecated. 
Description copied from interface: INode
Row id.

Specified by:
getId in interface INode

getParent

public INode getParent()
Deprecated. 
Description copied from interface: INode
Node parent, or null for root.

Specified by:
getParent in interface INode

getChildren

public List getChildren()
Deprecated. 
Description copied from interface: INode
List of INode children, in order. Empty list (non-null) for leaf nodes.

Specified by:
getChildren in interface INode