Project

General

Profile

« Previous | Next » 

Revision 31

Added by Matt Jones about 24 years ago

documentation additions

View differences:

ElementNode.java
16 16
import java.util.Vector;
17 17
import java.util.Enumeration;
18 18

  
19
/**
20
 * A Class that represents an XML element and its contents,
21
 * and can build itself from a database connection
22
 */
19 23
public class ReaderElement extends BasicElement {
20 24

  
21 25
    private Connection	conn;
22 26
    private Vector	children;
23 27

  
28
    /** 
29
     * Construct a new ReaderElement instance
30
     *
31
     * @param conn the database connection to use to initialize 
32
     */
24 33
    public ReaderElement (Connection conn) {
25 34
      this.conn = conn;
26 35
      this.children = new Vector();
27 36
    }
28 37

  
38
    /** 
39
     * Construct a new ReaderElement instance
40
     *
41
     * @param conn the database connection to use to initialize 
42
     * @param nodeid the element_id for the node to be created
43
     */
29 44
    public ReaderElement (Connection conn, long nodeid) {
30 45
      this(conn);
31 46

  
......
36 51
      setChildrenNodes(nodeid);
37 52
    }
38 53

  
54
    /** 
55
     * Construct a new ReaderElement instance
56
     *
57
     * @param conn the database connection to use to initialize 
58
     * @param nodeid the element_id for the node to be created
59
     * @param parentnodeid the id of the parent node
60
     * @param nodename the name of the element
61
     * @param nodedata the text content of the node
62
     */
39 63
    public ReaderElement (Connection conn, long nodeid, long parentnodeid,
40 64
                          String nodename, String nodedata) {
41 65
      this(conn);
......
156 180

  
157 181
    }
158 182

  
159
    /** String representation for display purposes */
183
    /** 
184
     * String representation for display purposes (recursively descends through
185
     * children to create an XML subtree)
186
     */
160 187
    public String toString ()
161 188
    {
162 189
        StringBuffer value = new StringBuffer();

Also available in: Unified diff