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,
getNodeID,
getNodeIndex,
getNodeType,
getParentID,
getTagName,
incChildNum,
setAttribute,
setNodeID,
setNodeIndex,
setNodeType,
setParentID,
setTagName |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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 initializenodeid
- 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 initializenodeid
- the element_id for the node to be createdparentnodeid
- the id of the parent nodenodename
- the name of the element
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.