edu.ucsb.nceas.metacat

## Class ElementNode

- java.lang.Object
- - edu.ucsb.nceas.metacat.BasicNode
  - - edu.ucsb.nceas.metacat.ElementNode

-     public class ElementNode
      extends BasicNode

  A Class that represents an XML element and its contents, and can build itself from a database connection

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ElementNode(java.util.TreeSet nodeRecordList, long nodeid)` Construct a new ElementNode instance, and recursively create its children

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `toString()` String representation for display purposes (recursively descends through children to create an XML subtree)

    - ### Methods inherited from class edu.ucsb.nceas.metacat.BasicNode

      `addChildNode, getAttribute, getAttributes, getChildren, getDocID, getNamespace, getNodeID, getNodeIndex, getNodeType, getParentID, getRootNodeID, getTagName, incChildNum, setAttribute, setDocID, setNamespace, setNodeID, setNodeIndex, setNodeType, setParentID, setRootNodeID, setTagName`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ElementNode

          public ElementNode(java.util.TreeSet nodeRecordList,
                             long nodeid)

      Construct a new ElementNode instance, and recursively create its children
      Parameters:
        `nodeRecordList` - the nodedata to use to initialize, which is a TreeSet of NodeRecord objects
        `nodeid` - the identifier for the node to be created

  - ### Method Detail

    - #### toString

          public java.lang.String toString()

      String representation for display purposes (recursively descends through children to create an XML subtree)
      Overrides:
        `toString` in class `java.lang.Object`

Copyright © 2023 Regents of the University of California. All Rights Reserved.