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
ElementNode(java.sql.Connection conn)
          Construct a new ElementNode instance
ElementNode(java.sql.Connection conn, long nodeid)
          Construct a new ElementNode instance
ElementNode(java.sql.Connection conn, long nodeid, long parentnodeid, java.lang.String nodename, java.lang.String nodetype)
          Construct a new ElementNode instance
 
Method Summary
 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, getNodeID, getNodeIndex, getNodeType, getParentID, getRootNodeID, getTagName, incChildNum, setAttribute, setDocID, 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.sql.Connection conn)
Construct a new ElementNode instance
Parameters:
conn - the database connection to use to initialize

ElementNode

public ElementNode(java.sql.Connection conn,
                   long nodeid)
Construct a new ElementNode instance
Parameters:
conn - the database connection to use to initialize
nodeid - the element_id for the node to be created

ElementNode

public ElementNode(java.sql.Connection conn,
                   long nodeid,
                   long parentnodeid,
                   java.lang.String nodename,
                   java.lang.String nodetype)
Construct a new ElementNode instance
Parameters:
conn - the database connection to use to initialize
nodeid - the element_id for the node to be created
parentnodeid - the id of the parent node
nodename - the name of the element
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 © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.