Class XMLElementNode

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

public class XMLElementNode extends Object implements INode
Deprecated.
use for better performance
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 Details

    • 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<INode> m_children
      Deprecated.
      Lazily created by getChildren().
  • Constructor Details

    • 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 Details

    • 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<INode> 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