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 |
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 initializenodeid
- 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 initializenodeid
- the element_id for the node to be createdparentnodeid
- the id of the parent nodenodename
- the name of the elementnodedata
- the text content of the node
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