Project

General

Profile

metacat / docs / edu / ucsb / nceas / metacat / TextNode.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  TextNode
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/TextNode.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/MetaCatUtil.html"><B>PREV CLASS</B></A>&nbsp;
39
&nbsp;<A HREF="../../../../edu/ucsb/nceas/metacat/XMLValidate.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="TextNode.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  TextNode</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.TextNode</B>
66
</PRE>
67
<HR>
68
<DL>
69
<DT>public class <B>TextNode</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/TextNode.html#TextNode(java.sql.Connection, long, long, java.lang.String, java.lang.String)">TextNode</A></B>(java.sql.Connection&nbsp;conn,
94
         long&nbsp;nodeid,
95
         long&nbsp;parentnodeid,
96
         java.lang.String&nbsp;nodedata,
97
         java.lang.String&nbsp;nodetype)</CODE>
98

    
99
<BR>
100
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Construct a new TextNode instance</TD>
101
</TR>
102
</TABLE>
103
&nbsp;
104
<!-- ========== METHOD SUMMARY =========== -->
105

    
106
<A NAME="method_summary"><!-- --></A>
107
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
108
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
109
<TD COLSPAN=2><FONT SIZE="+2">
110
<B>Method Summary</B></FONT></TD>
111
</TR>
112
<TR BGCOLOR="white" CLASS="TableRowColor">
113
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
114
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
115
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/TextNode.html#getNodeData()">getNodeData</A></B>()</CODE>
116

    
117
<BR>
118
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the node data as a string value</TD>
119
</TR>
120
<TR BGCOLOR="white" CLASS="TableRowColor">
121
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
122
<CODE>&nbsp;void</CODE></FONT></TD>
123
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/TextNode.html#setNodeData(java.lang.String)">setNodeData</A></B>(java.lang.String&nbsp;nodedata)</CODE>
124

    
125
<BR>
126
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the node data to the given string</TD>
127
</TR>
128
<TR BGCOLOR="white" CLASS="TableRowColor">
129
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
130
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
131
<TD><CODE><B><A HREF="../../../../edu/ucsb/nceas/metacat/TextNode.html#toString()">toString</A></B>()</CODE>
132

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

    
182
<!-- ============ FIELD DETAIL =========== -->
183

    
184

    
185
<!-- ========= CONSTRUCTOR DETAIL ======== -->
186

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

    
195
<A NAME="TextNode(java.sql.Connection, long, long, java.lang.String, java.lang.String)"><!-- --></A><H3>
196
TextNode</H3>
197
<PRE>
198
public <B>TextNode</B>(java.sql.Connection&nbsp;conn,
199
                long&nbsp;nodeid,
200
                long&nbsp;parentnodeid,
201
                java.lang.String&nbsp;nodedata,
202
                java.lang.String&nbsp;nodetype)</PRE>
203
<DL>
204
<DD>Construct a new TextNode instance<DD><DL>
205
<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>nodedata</CODE> - the text of the node<DD><CODE>nodetype</CODE> - the type of the node</DL>
206
</DD>
207
</DL>
208

    
209
<!-- ============ METHOD DETAIL ========== -->
210

    
211
<A NAME="method_detail"><!-- --></A>
212
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
213
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
214
<TD COLSPAN=1><FONT SIZE="+2">
215
<B>Method Detail</B></FONT></TD>
216
</TR>
217
</TABLE>
218

    
219
<A NAME="setNodeData(java.lang.String)"><!-- --></A><H3>
220
setNodeData</H3>
221
<PRE>
222
public void <B>setNodeData</B>(java.lang.String&nbsp;nodedata)</PRE>
223
<DL>
224
<DD>Set the node data to the given string</DL>
225
<HR>
226

    
227
<A NAME="getNodeData()"><!-- --></A><H3>
228
getNodeData</H3>
229
<PRE>
230
public java.lang.String <B>getNodeData</B>()</PRE>
231
<DL>
232
<DD>Get the node data as a string value</DL>
233
<HR>
234

    
235
<A NAME="toString()"><!-- --></A><H3>
236
toString</H3>
237
<PRE>
238
public java.lang.String <B>toString</B>()</PRE>
239
<DL>
240
<DD>String representation of this text node<DD><DL>
241
<DT><B>Overrides:</B><DD>toString in class java.lang.Object</DL>
242
</DD>
243
</DL>
244
<!-- ========= END OF CLASS DATA ========= -->
245
<HR>
246

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

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

    
287
<HR>
288
<i>Copyright ? 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.</i>
289
</BODY>
290
</HTML>