Project

General

Profile

metacat / docs / edu / ucsb / nceas / metacat / ElementNode.html @ 138

1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
2
<!--NewPage-->
3
<HTML>
4
<HEAD>
5
<!-- Generated by javadoc on Wed Jun 07 16:35:58 AKDT 2000 -->
6
<TITLE>
7
MetaCat API: Class  ElementNode
8
</TITLE>
9
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
10
</HEAD>
11
<BODY BGCOLOR="white">
12

    
13
<!-- ========== START OF NAVBAR ========== -->
14
<A NAME="navbar_top"><!-- --></A>
15
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
16
<TR>
17
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
18
<A NAME="navbar_top_firstrow"><!-- --></A>
19
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
20
  <TR ALIGN="center" VALIGN="top">
21
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
22
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
23
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ElementNode.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
27
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
28
  </TR>
29
</TABLE>
30
</TD>
31
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
32
</EM>
33
</TD>
34
</TR>
35

    
36
<TR>
37
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
38
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBTransform.html"><B>PREV CLASS</B></A>&nbsp;
39
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/GenericXMLValidate.html"><B>NEXT CLASS</B></A></FONT></TD>
40
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
41
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
42
&nbsp;<A HREF="ElementNode.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
43
</TR>
44
<TR>
45
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
46
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
47
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
48
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
49
</TR>
50
</TABLE>
51
<!-- =========== END OF NAVBAR =========== -->
52

    
53
<HR>
54
<!-- ======== START OF CLASS DATA ======== -->
55
<H2>
56
<FONT SIZE="-1">
57
edu.ucsb.nceas.metacat</FONT>
58
<BR>
59
Class  ElementNode</H2>
60
<PRE>
61
java.lang.Object
62
  |
63
  +--<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html">edu.ucsb.nceas.metacat.BasicNode</A>
64
        |
65
        +--<B>edu.ucsb.nceas.metacat.ElementNode</B>
66
</PRE>
67
<HR>
68
<DL>
69
<DT>public class <B>ElementNode</B><DT>extends <A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html">BasicNode</A></DL>
70

    
71
<P>
72
A Class that represents an XML element and its contents,
73
 and can build itself from a database connection
74
<P>
75
<HR>
76

    
77
<P>
78
<!-- ======== INNER CLASS SUMMARY ======== -->
79

    
80

    
81
<!-- =========== FIELD SUMMARY =========== -->
82

    
83

    
84
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
85

    
86
<A NAME="constructor_summary"><!-- --></A>
87
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
88
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
89
<TD COLSPAN=2><FONT SIZE="+2">
90
<B>Constructor Summary</B></FONT></TD>
91
</TR>
92
<TR BGCOLOR="white" CLASS="TableRowColor">
93
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/ElementNode.html#ElementNode(java.sql.Connection)">ElementNode</A></B>(java.sql.Connection&nbsp;conn)</CODE>
94

    
95
<BR>
96
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new ElementNode instance</TD>
97
</TR>
98
<TR BGCOLOR="white" CLASS="TableRowColor">
99
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/ElementNode.html#ElementNode(java.sql.Connection, long)">ElementNode</A></B>(java.sql.Connection&nbsp;conn,
100
            long&nbsp;nodeid)</CODE>
101

    
102
<BR>
103
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new ElementNode instance</TD>
104
</TR>
105
<TR BGCOLOR="white" CLASS="TableRowColor">
106
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/ElementNode.html#ElementNode(java.sql.Connection, long, long, java.lang.String, java.lang.String)">ElementNode</A></B>(java.sql.Connection&nbsp;conn,
107
            long&nbsp;nodeid,
108
            long&nbsp;parentnodeid,
109
            java.lang.String&nbsp;nodename,
110
            java.lang.String&nbsp;nodetype)</CODE>
111

    
112
<BR>
113
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new ElementNode instance</TD>
114
</TR>
115
</TABLE>
116
&nbsp;
117
<!-- ========== METHOD SUMMARY =========== -->
118

    
119
<A NAME="method_summary"><!-- --></A>
120
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
121
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
122
<TD COLSPAN=2><FONT SIZE="+2">
123
<B>Method Summary</B></FONT></TD>
124
</TR>
125
<TR BGCOLOR="white" CLASS="TableRowColor">
126
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
127
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
128
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/ElementNode.html#toString()">toString</A></B>()</CODE>
129

    
130
<BR>
131
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String representation for display purposes (recursively descends through
132
 children to create an XML subtree)</TD>
133
</TR>
134
</TABLE>
135
&nbsp;<A NAME="methods_inherited_from_class_edu.ucsb.nceas.metacat.BasicNode"><!-- --></A>
136
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
137
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
138
<TD><B>Methods inherited from class edu.ucsb.nceas.metacat.<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html">BasicNode</A></B></TD>
139
</TR>
140
<TR BGCOLOR="white" CLASS="TableRowColor">
141
<TD><CODE><A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#addChildNode(edu.ucsb.nceas.metacat.BasicNode)">addChildNode</A>, 
142
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getAttribute(java.lang.String)">getAttribute</A>, 
143
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getAttributes()">getAttributes</A>, 
144
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getChildren()">getChildren</A>, 
145
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getNodeID()">getNodeID</A>, 
146
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getNodeIndex()">getNodeIndex</A>, 
147
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getNodeType()">getNodeType</A>, 
148
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getParentID()">getParentID</A>, 
149
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#getTagName()">getTagName</A>, 
150
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#incChildNum()">incChildNum</A>, 
151
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A>, 
152
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setNodeID(long)">setNodeID</A>, 
153
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setNodeIndex(int)">setNodeIndex</A>, 
154
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setNodeType(java.lang.String)">setNodeType</A>, 
155
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setParentID(long)">setParentID</A>, 
156
<A HREF="../../../../edu/ucsb/nceas/metacat/BasicNode.html#setTagName(java.lang.String)">setTagName</A></CODE></TD>
157
</TR>
158
</TABLE>
159
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
160
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
161
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
162
<TD><B>Methods inherited from class java.lang.Object</B></TD>
163
</TR>
164
<TR BGCOLOR="white" CLASS="TableRowColor">
165
<TD><CODE>clone, 
166
equals, 
167
finalize, 
168
getClass, 
169
hashCode, 
170
notify, 
171
notifyAll, 
172
wait, 
173
wait, 
174
wait</CODE></TD>
175
</TR>
176
</TABLE>
177
&nbsp;
178
<P>
179

    
180
<!-- ============ FIELD DETAIL =========== -->
181

    
182

    
183
<!-- ========= CONSTRUCTOR DETAIL ======== -->
184

    
185
<A NAME="constructor_detail"><!-- --></A>
186
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
187
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
188
<TD COLSPAN=1><FONT SIZE="+2">
189
<B>Constructor Detail</B></FONT></TD>
190
</TR>
191
</TABLE>
192

    
193
<A NAME="ElementNode(java.sql.Connection)"><!-- --></A><H3>
194
ElementNode</H3>
195
<PRE>
196
public <B>ElementNode</B>(java.sql.Connection&nbsp;conn)</PRE>
197
<DL>
198
<DD>Construct a new ElementNode instance<DD><DL>
199
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the database connection to use to initialize</DL>
200
</DD>
201
</DL>
202
<HR>
203

    
204
<A NAME="ElementNode(java.sql.Connection, long)"><!-- --></A><H3>
205
ElementNode</H3>
206
<PRE>
207
public <B>ElementNode</B>(java.sql.Connection&nbsp;conn,
208
                   long&nbsp;nodeid)</PRE>
209
<DL>
210
<DD>Construct a new ElementNode instance<DD><DL>
211
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the database connection to use to initialize<DD><CODE>nodeid</CODE> - the element_id for the node to be created</DL>
212
</DD>
213
</DL>
214
<HR>
215

    
216
<A NAME="ElementNode(java.sql.Connection, long, long, java.lang.String, java.lang.String)"><!-- --></A><H3>
217
ElementNode</H3>
218
<PRE>
219
public <B>ElementNode</B>(java.sql.Connection&nbsp;conn,
220
                   long&nbsp;nodeid,
221
                   long&nbsp;parentnodeid,
222
                   java.lang.String&nbsp;nodename,
223
                   java.lang.String&nbsp;nodetype)</PRE>
224
<DL>
225
<DD>Construct a new ElementNode instance<DD><DL>
226
<DT><B>Parameters:</B><DD><CODE>conn</CODE> - the database connection to use to initialize<DD><CODE>nodeid</CODE> - the element_id for the node to be created<DD><CODE>parentnodeid</CODE> - the id of the parent node<DD><CODE>nodename</CODE> - the name of the element</DL>
227
</DD>
228
</DL>
229

    
230
<!-- ============ METHOD DETAIL ========== -->
231

    
232
<A NAME="method_detail"><!-- --></A>
233
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
234
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
235
<TD COLSPAN=1><FONT SIZE="+2">
236
<B>Method Detail</B></FONT></TD>
237
</TR>
238
</TABLE>
239

    
240
<A NAME="toString()"><!-- --></A><H3>
241
toString</H3>
242
<PRE>
243
public java.lang.String <B>toString</B>()</PRE>
244
<DL>
245
<DD>String representation for display purposes (recursively descends through
246
 children to create an XML subtree)<DD><DL>
247
<DT><B>Overrides:</B><DD>toString in class java.lang.Object</DL>
248
</DD>
249
</DL>
250
<!-- ========= END OF CLASS DATA ========= -->
251
<HR>
252

    
253
<!-- ========== START OF NAVBAR ========== -->
254
<A NAME="navbar_bottom"><!-- --></A>
255
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
256
<TR>
257
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
258
<A NAME="navbar_bottom_firstrow"><!-- --></A>
259
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
260
  <TR ALIGN="center" VALIGN="top">
261
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
262
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
263
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ElementNode.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
264
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
265
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
266
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
267
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
268
  </TR>
269
</TABLE>
270
</TD>
271
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
272
</EM>
273
</TD>
274
</TR>
275

    
276
<TR>
277
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
278
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/DBTransform.html"><B>PREV CLASS</B></A>&nbsp;
279
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/GenericXMLValidate.html"><B>NEXT CLASS</B></A></FONT></TD>
280
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
281
  <A HREF="../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
282
&nbsp;<A HREF="ElementNode.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
283
</TR>
284
<TR>
285
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
286
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
287
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
288
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
289
</TR>
290
</TABLE>
291
<!-- =========== END OF NAVBAR =========== -->
292

    
293
<HR>
294
<i>Copyright ? 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>
295
</BODY>
296
</HTML>