Project

General

Profile

metacat / docs / edu / ucsb / nceas / metacat / ReaderElement.html @ 107

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 Sat May 20 14:25:42 AKDT 2000 -->
6
<TITLE>
7
: Class  ReaderElement
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="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
24
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
25
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
26
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
27
  </TR>
28
</TABLE>
29
</TD>
30
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
31
</EM>
32
</TD>
33
</TR>
34

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

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

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

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

    
79

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

    
82

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

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

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

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

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

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

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

    
177
<!-- ============ FIELD DETAIL =========== -->
178

    
179

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

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

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

    
201
<A NAME="ReaderElement(java.sql.Connection, long)"><!-- --></A><H3>
202
ReaderElement</H3>
203
<PRE>
204
public <B>ReaderElement</B>(java.sql.Connection&nbsp;conn,
205
                     long&nbsp;nodeid)</PRE>
206
<DL>
207
<DD>Construct a new ReaderElement instance<DD><DL>
208
<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>
209
</DD>
210
</DL>
211
<HR>
212

    
213
<A NAME="ReaderElement(java.sql.Connection, long, long, java.lang.String, java.lang.String)"><!-- --></A><H3>
214
ReaderElement</H3>
215
<PRE>
216
public <B>ReaderElement</B>(java.sql.Connection&nbsp;conn,
217
                     long&nbsp;nodeid,
218
                     long&nbsp;parentnodeid,
219
                     java.lang.String&nbsp;nodename,
220
                     java.lang.String&nbsp;nodedata)</PRE>
221
<DL>
222
<DD>Construct a new ReaderElement instance<DD><DL>
223
<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<DD><CODE>nodedata</CODE> - the text content of the node</DL>
224
</DD>
225
</DL>
226

    
227
<!-- ============ METHOD DETAIL ========== -->
228

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

    
237
<A NAME="toString()"><!-- --></A><H3>
238
toString</H3>
239
<PRE>
240
public java.lang.String <B>toString</B>()</PRE>
241
<DL>
242
<DD>String representation for display purposes (recursively descends through
243
 children to create an XML subtree)<DD><DL>
244
<DT><B>Overrides:</B><DD><A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html#toString()">toString</A> in class <A HREF="../../../../edu/ucsb/nceas/metacat/BasicElement.html">BasicElement</A></DL>
245
</DD>
246
</DL>
247
<!-- ========= END OF CLASS DATA ========= -->
248
<HR>
249

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

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

    
289
<HR>
290

    
291
</BODY>
292
</HTML>