Class ReaderElement

java.lang.Object
  |
  +--BasicElement
        |
        +--ReaderElement

public class ReaderElement
extends BasicElement

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


Constructor Summary
ReaderElement(java.sql.Connection conn)
          Construct a new ReaderElement instance
ReaderElement(java.sql.Connection conn, long nodeid)
          Construct a new ReaderElement instance
ReaderElement(java.sql.Connection conn, long nodeid, long parentnodeid, java.lang.String nodename, java.lang.String nodedata)
          Construct a new ReaderElement 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 BasicElement
appendContent, appendContent, getAttribute, getAttributes, getContent, getElementID, getParentID, getTagName, setAttribute, setElementID, setParentID, setTagName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReaderElement

public ReaderElement(java.sql.Connection conn)
Construct a new ReaderElement instance
Parameters:
conn - the database connection to use to initialize

ReaderElement

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

ReaderElement

public ReaderElement(java.sql.Connection conn,
                     long nodeid,
                     long parentnodeid,
                     java.lang.String nodename,
                     java.lang.String nodedata)
Construct a new ReaderElement 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
nodedata - the text content of the node
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 BasicElement