svn-gvsig-desktop / tags / tmp_build / build / distribution / izpack_4.2.0 / doc / izpack / javadoc / net / n3 / nanoxml / XMLElement.html @ 26384
History | View | Annotate | Download (35.1 KB)
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
---|---|
2 |
<!--NewPage-->
|
3 |
<HTML>
|
4 |
<HEAD>
|
5 |
<!-- Generated by javadoc (build 1.5.0_16) on Wed Dec 17 09:24:18 CET 2008 -->
|
6 |
<TITLE>
|
7 |
XMLElement |
8 |
</TITLE>
|
9 |
|
10 |
<META NAME="keywords" CONTENT="net.n3.nanoxml.XMLElement class"> |
11 |
|
12 |
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> |
13 |
|
14 |
<SCRIPT type="text/javascript"> |
15 |
function windowTitle() |
16 |
{ |
17 |
parent.document.title="XMLElement"; |
18 |
} |
19 |
</SCRIPT>
|
20 |
<NOSCRIPT>
|
21 |
</NOSCRIPT>
|
22 |
|
23 |
</HEAD>
|
24 |
|
25 |
<BODY BGCOLOR="white" onload="windowTitle();"> |
26 |
|
27 |
|
28 |
<!-- ========= START OF TOP NAVBAR ======= -->
|
29 |
<A NAME="navbar_top"><!-- --></A> |
30 |
<A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
31 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
32 |
<TR>
|
33 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
34 |
<A NAME="navbar_top_firstrow"><!-- --></A> |
35 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
36 |
<TR ALIGN="center" VALIGN="top"> |
37 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
38 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
39 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
40 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
41 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
42 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
43 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
44 |
</TR>
|
45 |
</TABLE>
|
46 |
</TD>
|
47 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
48 |
</EM>
|
49 |
</TD>
|
50 |
</TR>
|
51 |
|
52 |
<TR>
|
53 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
54 |
<A HREF="../../../net/n3/nanoxml/XMLBuilderFactory.html" title="class in net.n3.nanoxml"><B>PREV CLASS</B></A> |
55 |
<A HREF="../../../net/n3/nanoxml/XMLEntityResolver.html" title="class in net.n3.nanoxml"><B>NEXT CLASS</B></A></FONT></TD> |
56 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
57 |
<A HREF="../../../index.html?net/n3/nanoxml/XMLElement.html" target="_top"><B>FRAMES</B></A> |
58 |
<A HREF="XMLElement.html" target="_top"><B>NO FRAMES</B></A> |
59 |
<SCRIPT type="text/javascript"> |
60 |
<!--
|
61 |
if(window==top) {
|
62 |
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
63 |
}
|
64 |
//-->
|
65 |
</SCRIPT>
|
66 |
<NOSCRIPT>
|
67 |
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
68 |
</NOSCRIPT>
|
69 |
|
70 |
|
71 |
</FONT></TD> |
72 |
</TR>
|
73 |
<TR>
|
74 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
75 |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
76 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
77 |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
78 |
</TR>
|
79 |
</TABLE>
|
80 |
<A NAME="skip-navbar_top"></A> |
81 |
<!-- ========= END OF TOP NAVBAR ========= -->
|
82 |
|
83 |
<HR>
|
84 |
<!-- ======== START OF CLASS DATA ======== -->
|
85 |
<H2>
|
86 |
<FONT SIZE="-1"> |
87 |
net.n3.nanoxml</FONT>
|
88 |
<BR>
|
89 |
Class XMLElement</H2>
|
90 |
<PRE>
|
91 |
java.lang.Object |
92 |
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>net.n3.nanoxml.XMLElement</B> |
93 |
</PRE>
|
94 |
<DL>
|
95 |
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD> |
96 |
</DL>
|
97 |
<HR>
|
98 |
<DL>
|
99 |
<DT><PRE>public class <B>XMLElement</B><DT>extends java.lang.Object<DT>implements java.io.Serializable</DL> |
100 |
</PRE>
|
101 |
|
102 |
<P>
|
103 |
XMLElement is an XML element. The standard NanoXML builder generates a tree of such elements. |
104 |
<P>
|
105 |
|
106 |
<P>
|
107 |
<DL>
|
108 |
<DT><B>Version:</B></DT> |
109 |
<DD>$Name$, $Revision: 2163 $</DD> |
110 |
<DT><B>Author:</B></DT> |
111 |
<DD>Marc De Scheemaecker</DD> |
112 |
<DT><B>See Also:</B><DD><A HREF="../../../net/n3/nanoxml/StdXMLBuilder.html" title="class in net.n3.nanoxml"><CODE>StdXMLBuilder</CODE></A>, |
113 |
<A HREF="../../../serialized-form.html#net.n3.nanoxml.XMLElement">Serialized Form</A></DL> |
114 |
<HR>
|
115 |
|
116 |
<P>
|
117 |
<!-- =========== FIELD SUMMARY =========== -->
|
118 |
|
119 |
<A NAME="field_summary"><!-- --></A> |
120 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
121 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
122 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
123 |
<B>Field Summary</B></FONT></TH> |
124 |
</TR>
|
125 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
126 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
127 |
<CODE>private java.util.Properties</CODE></FONT></TD> |
128 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#attributes">attributes</A></B></CODE> |
129 |
|
130 |
<BR>
|
131 |
The attributes of the element.</TD> |
132 |
</TR>
|
133 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
134 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
135 |
<CODE>private java.util.Vector</CODE></FONT></TD> |
136 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#children">children</A></B></CODE> |
137 |
|
138 |
<BR>
|
139 |
The child elements.</TD> |
140 |
</TR>
|
141 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
142 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
143 |
<CODE>private java.lang.String</CODE></FONT></TD> |
144 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#content">content</A></B></CODE> |
145 |
|
146 |
<BR>
|
147 |
The content of the element.</TD> |
148 |
</TR>
|
149 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
150 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
151 |
<CODE>private int</CODE></FONT></TD> |
152 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#lineNr">lineNr</A></B></CODE> |
153 |
|
154 |
<BR>
|
155 |
The line in the source data where this element starts.</TD> |
156 |
</TR>
|
157 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
158 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
159 |
<CODE>private java.lang.String</CODE></FONT></TD> |
160 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#name">name</A></B></CODE> |
161 |
|
162 |
<BR>
|
163 |
The name of the element.</TD> |
164 |
</TR>
|
165 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
166 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
167 |
<CODE>static int</CODE></FONT></TD> |
168 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#NO_LINE">NO_LINE</A></B></CODE> |
169 |
|
170 |
<BR>
|
171 |
No line number defined.</TD> |
172 |
</TR>
|
173 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
174 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
175 |
<CODE>(package private) static long</CODE></FONT></TD> |
176 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#serialVersionUID">serialVersionUID</A></B></CODE> |
177 |
|
178 |
<BR>
|
179 |
Necessary for serialization.</TD> |
180 |
</TR>
|
181 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
182 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
183 |
<CODE>private java.lang.String</CODE></FONT></TD> |
184 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#systemID">systemID</A></B></CODE> |
185 |
|
186 |
<BR>
|
187 |
The system ID of the source data where this element is located.</TD> |
188 |
</TR>
|
189 |
</TABLE>
|
190 |
|
191 |
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
192 |
|
193 |
<A NAME="constructor_summary"><!-- --></A> |
194 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
195 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
196 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
197 |
<B>Constructor Summary</B></FONT></TH> |
198 |
</TR>
|
199 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
200 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#XMLElement()">XMLElement</A></B>()</CODE> |
201 |
|
202 |
<BR>
|
203 |
Creates an empty element to be used for #PCDATA content.</TD> |
204 |
</TR>
|
205 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
206 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#XMLElement(java.lang.String)">XMLElement</A></B>(java.lang.String name)</CODE> |
207 |
|
208 |
<BR>
|
209 |
Creates an empty element.</TD> |
210 |
</TR>
|
211 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
212 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#XMLElement(java.lang.String, java.lang.String, int)">XMLElement</A></B>(java.lang.String name, |
213 |
java.lang.String systemID,
|
214 |
int lineNr)</CODE> |
215 |
|
216 |
<BR>
|
217 |
Creates an empty element.</TD> |
218 |
</TR>
|
219 |
</TABLE>
|
220 |
|
221 |
<!-- ========== METHOD SUMMARY =========== -->
|
222 |
|
223 |
<A NAME="method_summary"><!-- --></A> |
224 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
225 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
226 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
227 |
<B>Method Summary</B></FONT></TH> |
228 |
</TR>
|
229 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
230 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
231 |
<CODE> void</CODE></FONT></TD> |
232 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#addChild(net.n3.nanoxml.XMLElement)">addChild</A></B>(<A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A> child)</CODE> |
233 |
|
234 |
<BR>
|
235 |
Adds a child element.</TD> |
236 |
</TR>
|
237 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
238 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
239 |
<CODE> java.util.Enumeration</CODE></FONT></TD> |
240 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#enumerateAttributeNames()">enumerateAttributeNames</A></B>()</CODE> |
241 |
|
242 |
<BR>
|
243 |
Returns an enumeration of all attribute names.</TD> |
244 |
</TR>
|
245 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
246 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
247 |
<CODE> java.util.Enumeration</CODE></FONT></TD> |
248 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#enumerateChildren()">enumerateChildren</A></B>()</CODE> |
249 |
|
250 |
<BR>
|
251 |
Returns an enumeration of all child elements.</TD> |
252 |
</TR>
|
253 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
254 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
255 |
<CODE>protected void</CODE></FONT></TD> |
256 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#finalize()">finalize</A></B>()</CODE> |
257 |
|
258 |
<BR>
|
259 |
Cleans up the object when it's destroyed.</TD> |
260 |
</TR>
|
261 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
262 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
263 |
<CODE> java.lang.String</CODE></FONT></TD> |
264 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getAttribute(java.lang.String)">getAttribute</A></B>(java.lang.String name)</CODE> |
265 |
|
266 |
<BR>
|
267 |
Returns the value of an attribute.</TD> |
268 |
</TR>
|
269 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
270 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
271 |
<CODE> java.lang.String</CODE></FONT></TD> |
272 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getAttribute(java.lang.String, java.lang.String)">getAttribute</A></B>(java.lang.String name, |
273 |
java.lang.String defaultValue)</CODE> |
274 |
|
275 |
<BR>
|
276 |
Returns the value of an attribute.</TD> |
277 |
</TR>
|
278 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
279 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
280 |
<CODE> java.util.Properties</CODE></FONT></TD> |
281 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getAttributes()">getAttributes</A></B>()</CODE> |
282 |
|
283 |
<BR>
|
284 |
Returns all attributes as a Properties object.</TD> |
285 |
</TR>
|
286 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
287 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
288 |
<CODE> <A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A></CODE></FONT></TD> |
289 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getChildAtIndex(int)">getChildAtIndex</A></B>(int index)</CODE> |
290 |
|
291 |
<BR>
|
292 |
Returns the child at a specific index.</TD> |
293 |
</TR>
|
294 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
295 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
296 |
<CODE> java.util.Vector</CODE></FONT></TD> |
297 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getChildren()">getChildren</A></B>()</CODE> |
298 |
|
299 |
<BR>
|
300 |
Returns a vector containing all the child elements.</TD> |
301 |
</TR>
|
302 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
303 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
304 |
<CODE> int</CODE></FONT></TD> |
305 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getChildrenCount()">getChildrenCount</A></B>()</CODE> |
306 |
|
307 |
<BR>
|
308 |
Returns the number of children.</TD> |
309 |
</TR>
|
310 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
311 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
312 |
<CODE> java.util.Vector<<A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A>></CODE></FONT></TD> |
313 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getChildrenNamed(java.lang.String)">getChildrenNamed</A></B>(java.lang.String name)</CODE> |
314 |
|
315 |
<BR>
|
316 |
Returns a vector of all child elements named <I>name</I>.</TD> |
317 |
</TR>
|
318 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
319 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
320 |
<CODE> java.lang.String</CODE></FONT></TD> |
321 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getContent()">getContent</A></B>()</CODE> |
322 |
|
323 |
<BR>
|
324 |
Return the #PCDATA content of the element.</TD> |
325 |
</TR>
|
326 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
327 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
328 |
<CODE> <A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A></CODE></FONT></TD> |
329 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getFirstChildNamed(java.lang.String)">getFirstChildNamed</A></B>(java.lang.String name)</CODE> |
330 |
|
331 |
<BR>
|
332 |
Searches a child element.</TD> |
333 |
</TR>
|
334 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
335 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
336 |
<CODE> int</CODE></FONT></TD> |
337 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getLineNr()">getLineNr</A></B>()</CODE> |
338 |
|
339 |
<BR>
|
340 |
Returns the line number in the data where the element started.</TD> |
341 |
</TR>
|
342 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
343 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
344 |
<CODE> java.lang.String</CODE></FONT></TD> |
345 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getName()">getName</A></B>()</CODE> |
346 |
|
347 |
<BR>
|
348 |
Returns the name of the element.</TD> |
349 |
</TR>
|
350 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
351 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
352 |
<CODE> java.lang.String</CODE></FONT></TD> |
353 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#getSystemID()">getSystemID</A></B>()</CODE> |
354 |
|
355 |
<BR>
|
356 |
Returns the system ID of the data where the element started.</TD> |
357 |
</TR>
|
358 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
359 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
360 |
<CODE> boolean</CODE></FONT></TD> |
361 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#hasAttribute(java.lang.String)">hasAttribute</A></B>(java.lang.String name)</CODE> |
362 |
|
363 |
<BR>
|
364 |
Returns whether an attribute exists.</TD> |
365 |
</TR>
|
366 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
367 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
368 |
<CODE> boolean</CODE></FONT></TD> |
369 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#hasChildren()">hasChildren</A></B>()</CODE> |
370 |
|
371 |
<BR>
|
372 |
Returns whether the element has children.</TD> |
373 |
</TR>
|
374 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
375 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
376 |
<CODE> boolean</CODE></FONT></TD> |
377 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#isLeaf()">isLeaf</A></B>()</CODE> |
378 |
|
379 |
<BR>
|
380 |
Returns whether the element is a leaf element.</TD> |
381 |
</TR>
|
382 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
383 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
384 |
<CODE> void</CODE></FONT></TD> |
385 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#removeAttribute(java.lang.String)">removeAttribute</A></B>(java.lang.String name)</CODE> |
386 |
|
387 |
<BR>
|
388 |
Removes an attribute.</TD> |
389 |
</TR>
|
390 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
391 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
392 |
<CODE> void</CODE></FONT></TD> |
393 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#removeChild(net.n3.nanoxml.XMLElement)">removeChild</A></B>(<A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A> child)</CODE> |
394 |
|
395 |
<BR>
|
396 |
Removes a child element.</TD> |
397 |
</TR>
|
398 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
399 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
400 |
<CODE> void</CODE></FONT></TD> |
401 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#removeChildAtIndex(int)">removeChildAtIndex</A></B>(int index)</CODE> |
402 |
|
403 |
<BR>
|
404 |
Removes the child located at a certain index.</TD> |
405 |
</TR>
|
406 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
407 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
408 |
<CODE> void</CODE></FONT></TD> |
409 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#setAttribute(java.lang.String, java.lang.String)">setAttribute</A></B>(java.lang.String name, |
410 |
java.lang.String value)</CODE> |
411 |
|
412 |
<BR>
|
413 |
Sets an attribute.</TD> |
414 |
</TR>
|
415 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
416 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
417 |
<CODE> void</CODE></FONT></TD> |
418 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#setContent(java.lang.String)">setContent</A></B>(java.lang.String content)</CODE> |
419 |
|
420 |
<BR>
|
421 |
Sets the #PCDATA content.</TD> |
422 |
</TR>
|
423 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
424 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
425 |
<CODE> void</CODE></FONT></TD> |
426 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLElement.html#setName(java.lang.String)">setName</A></B>(java.lang.String name)</CODE> |
427 |
|
428 |
<BR>
|
429 |
Sets the name.</TD> |
430 |
</TR>
|
431 |
</TABLE>
|
432 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
433 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
434 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
435 |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
436 |
</TR>
|
437 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
438 |
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> |
439 |
</TR>
|
440 |
</TABLE>
|
441 |
|
442 |
<P>
|
443 |
|
444 |
<!-- ============ FIELD DETAIL =========== -->
|
445 |
|
446 |
<A NAME="field_detail"><!-- --></A> |
447 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
448 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
449 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
450 |
<B>Field Detail</B></FONT></TH> |
451 |
</TR>
|
452 |
</TABLE>
|
453 |
|
454 |
<A NAME="serialVersionUID"><!-- --></A><H3> |
455 |
serialVersionUID</H3>
|
456 |
<PRE>
|
457 |
static final long <B>serialVersionUID</B></PRE> |
458 |
<DL>
|
459 |
<DD>Necessary for serialization.
|
460 |
<P>
|
461 |
<DL>
|
462 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLElement.serialVersionUID">Constant Field Values</A></DL> |
463 |
</DL>
|
464 |
<HR>
|
465 |
|
466 |
<A NAME="NO_LINE"><!-- --></A><H3> |
467 |
NO_LINE</H3>
|
468 |
<PRE>
|
469 |
public static final int <B>NO_LINE</B></PRE> |
470 |
<DL>
|
471 |
<DD>No line number defined.
|
472 |
<P>
|
473 |
<DL>
|
474 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLElement.NO_LINE">Constant Field Values</A></DL> |
475 |
</DL>
|
476 |
<HR>
|
477 |
|
478 |
<A NAME="attributes"><!-- --></A><H3> |
479 |
attributes</H3>
|
480 |
<PRE>
|
481 |
private java.util.Properties <B>attributes</B></PRE> |
482 |
<DL>
|
483 |
<DD>The attributes of the element.
|
484 |
<P>
|
485 |
<DL>
|
486 |
</DL>
|
487 |
</DL>
|
488 |
<HR>
|
489 |
|
490 |
<A NAME="children"><!-- --></A><H3> |
491 |
children</H3>
|
492 |
<PRE>
|
493 |
private java.util.Vector <B>children</B></PRE> |
494 |
<DL>
|
495 |
<DD>The child elements.
|
496 |
<P>
|
497 |
<DL>
|
498 |
</DL>
|
499 |
</DL>
|
500 |
<HR>
|
501 |
|
502 |
<A NAME="name"><!-- --></A><H3> |
503 |
name</H3>
|
504 |
<PRE>
|
505 |
private java.lang.String <B>name</B></PRE> |
506 |
<DL>
|
507 |
<DD>The name of the element.
|
508 |
<P>
|
509 |
<DL>
|
510 |
</DL>
|
511 |
</DL>
|
512 |
<HR>
|
513 |
|
514 |
<A NAME="content"><!-- --></A><H3> |
515 |
content</H3>
|
516 |
<PRE>
|
517 |
private java.lang.String <B>content</B></PRE> |
518 |
<DL>
|
519 |
<DD>The content of the element.
|
520 |
<P>
|
521 |
<DL>
|
522 |
</DL>
|
523 |
</DL>
|
524 |
<HR>
|
525 |
|
526 |
<A NAME="systemID"><!-- --></A><H3> |
527 |
systemID</H3>
|
528 |
<PRE>
|
529 |
private java.lang.String <B>systemID</B></PRE> |
530 |
<DL>
|
531 |
<DD>The system ID of the source data where this element is located.
|
532 |
<P>
|
533 |
<DL>
|
534 |
</DL>
|
535 |
</DL>
|
536 |
<HR>
|
537 |
|
538 |
<A NAME="lineNr"><!-- --></A><H3> |
539 |
lineNr</H3>
|
540 |
<PRE>
|
541 |
private int <B>lineNr</B></PRE> |
542 |
<DL>
|
543 |
<DD>The line in the source data where this element starts.
|
544 |
<P>
|
545 |
<DL>
|
546 |
</DL>
|
547 |
</DL>
|
548 |
|
549 |
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
550 |
|
551 |
<A NAME="constructor_detail"><!-- --></A> |
552 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
553 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
554 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
555 |
<B>Constructor Detail</B></FONT></TH> |
556 |
</TR>
|
557 |
</TABLE>
|
558 |
|
559 |
<A NAME="XMLElement()"><!-- --></A><H3> |
560 |
XMLElement</H3>
|
561 |
<PRE>
|
562 |
public <B>XMLElement</B>()</PRE> |
563 |
<DL>
|
564 |
<DD>Creates an empty element to be used for #PCDATA content.
|
565 |
<P>
|
566 |
</DL>
|
567 |
<HR>
|
568 |
|
569 |
<A NAME="XMLElement(java.lang.String)"><!-- --></A><H3> |
570 |
XMLElement</H3>
|
571 |
<PRE>
|
572 |
public <B>XMLElement</B>(java.lang.String name)</PRE> |
573 |
<DL>
|
574 |
<DD>Creates an empty element.
|
575 |
<P>
|
576 |
<DL>
|
577 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the element.</DL> |
578 |
</DL>
|
579 |
<HR>
|
580 |
|
581 |
<A NAME="XMLElement(java.lang.String, java.lang.String, int)"><!-- --></A><H3> |
582 |
XMLElement</H3>
|
583 |
<PRE>
|
584 |
public <B>XMLElement</B>(java.lang.String name, |
585 |
java.lang.String systemID,
|
586 |
int lineNr)</PRE> |
587 |
<DL>
|
588 |
<DD>Creates an empty element.
|
589 |
<P>
|
590 |
<DL>
|
591 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the element.<DD><CODE>systemID</CODE> - the system ID of the XML data where the element starts.<DD><CODE>lineNr</CODE> - the line in the XML data where the element starts.</DL> |
592 |
</DL>
|
593 |
|
594 |
<!-- ============ METHOD DETAIL ========== -->
|
595 |
|
596 |
<A NAME="method_detail"><!-- --></A> |
597 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
598 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
599 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
600 |
<B>Method Detail</B></FONT></TH> |
601 |
</TR>
|
602 |
</TABLE>
|
603 |
|
604 |
<A NAME="finalize()"><!-- --></A><H3> |
605 |
finalize</H3>
|
606 |
<PRE>
|
607 |
protected void <B>finalize</B>() |
608 |
throws java.lang.Throwable</PRE>
|
609 |
<DL>
|
610 |
<DD>Cleans up the object when it's destroyed.
|
611 |
<P>
|
612 |
<DD><DL> |
613 |
<DT><B>Overrides:</B><DD><CODE>finalize</CODE> in class <CODE>java.lang.Object</CODE></DL> |
614 |
</DD>
|
615 |
<DD><DL> |
616 |
|
617 |
<DT><B>Throws:</B> |
618 |
<DD><CODE>java.lang.Throwable</CODE></DL> |
619 |
</DD>
|
620 |
</DL>
|
621 |
<HR>
|
622 |
|
623 |
<A NAME="getName()"><!-- --></A><H3> |
624 |
getName</H3>
|
625 |
<PRE>
|
626 |
public java.lang.String <B>getName</B>()</PRE> |
627 |
<DL>
|
628 |
<DD>Returns the name of the element.
|
629 |
<P>
|
630 |
<DD><DL> |
631 |
</DL>
|
632 |
</DD>
|
633 |
<DD><DL> |
634 |
|
635 |
<DT><B>Returns:</B><DD>the name, or null if the element only contains #PCDATA.</DL> |
636 |
</DD>
|
637 |
</DL>
|
638 |
<HR>
|
639 |
|
640 |
<A NAME="setName(java.lang.String)"><!-- --></A><H3> |
641 |
setName</H3>
|
642 |
<PRE>
|
643 |
public void <B>setName</B>(java.lang.String name)</PRE> |
644 |
<DL>
|
645 |
<DD>Sets the name.
|
646 |
<P>
|
647 |
<DD><DL> |
648 |
</DL>
|
649 |
</DD>
|
650 |
<DD><DL> |
651 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the non-null name.</DL> |
652 |
</DD>
|
653 |
</DL>
|
654 |
<HR>
|
655 |
|
656 |
<A NAME="addChild(net.n3.nanoxml.XMLElement)"><!-- --></A><H3> |
657 |
addChild</H3>
|
658 |
<PRE>
|
659 |
public void <B>addChild</B>(<A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A> child)</PRE> |
660 |
<DL>
|
661 |
<DD>Adds a child element.
|
662 |
<P>
|
663 |
<DD><DL> |
664 |
</DL>
|
665 |
</DD>
|
666 |
<DD><DL> |
667 |
<DT><B>Parameters:</B><DD><CODE>child</CODE> - the non-null child to add.</DL> |
668 |
</DD>
|
669 |
</DL>
|
670 |
<HR>
|
671 |
|
672 |
<A NAME="removeChild(net.n3.nanoxml.XMLElement)"><!-- --></A><H3> |
673 |
removeChild</H3>
|
674 |
<PRE>
|
675 |
public void <B>removeChild</B>(<A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A> child)</PRE> |
676 |
<DL>
|
677 |
<DD>Removes a child element.
|
678 |
<P>
|
679 |
<DD><DL> |
680 |
</DL>
|
681 |
</DD>
|
682 |
<DD><DL> |
683 |
<DT><B>Parameters:</B><DD><CODE>child</CODE> - the non-null child to remove.</DL> |
684 |
</DD>
|
685 |
</DL>
|
686 |
<HR>
|
687 |
|
688 |
<A NAME="removeChildAtIndex(int)"><!-- --></A><H3> |
689 |
removeChildAtIndex</H3>
|
690 |
<PRE>
|
691 |
public void <B>removeChildAtIndex</B>(int index)</PRE> |
692 |
<DL>
|
693 |
<DD>Removes the child located at a certain index.
|
694 |
<P>
|
695 |
<DD><DL> |
696 |
</DL>
|
697 |
</DD>
|
698 |
<DD><DL> |
699 |
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the child, where the first child has index 0.</DL> |
700 |
</DD>
|
701 |
</DL>
|
702 |
<HR>
|
703 |
|
704 |
<A NAME="enumerateChildren()"><!-- --></A><H3> |
705 |
enumerateChildren</H3>
|
706 |
<PRE>
|
707 |
public java.util.Enumeration <B>enumerateChildren</B>()</PRE> |
708 |
<DL>
|
709 |
<DD>Returns an enumeration of all child elements.
|
710 |
<P>
|
711 |
<DD><DL> |
712 |
</DL>
|
713 |
</DD>
|
714 |
<DD><DL> |
715 |
|
716 |
<DT><B>Returns:</B><DD>the non-null enumeration</DL> |
717 |
</DD>
|
718 |
</DL>
|
719 |
<HR>
|
720 |
|
721 |
<A NAME="isLeaf()"><!-- --></A><H3> |
722 |
isLeaf</H3>
|
723 |
<PRE>
|
724 |
public boolean <B>isLeaf</B>()</PRE> |
725 |
<DL>
|
726 |
<DD>Returns whether the element is a leaf element.
|
727 |
<P>
|
728 |
<DD><DL> |
729 |
</DL>
|
730 |
</DD>
|
731 |
<DD><DL> |
732 |
|
733 |
<DT><B>Returns:</B><DD>true if the element has no children.</DL> |
734 |
</DD>
|
735 |
</DL>
|
736 |
<HR>
|
737 |
|
738 |
<A NAME="hasChildren()"><!-- --></A><H3> |
739 |
hasChildren</H3>
|
740 |
<PRE>
|
741 |
public boolean <B>hasChildren</B>()</PRE> |
742 |
<DL>
|
743 |
<DD>Returns whether the element has children.
|
744 |
<P>
|
745 |
<DD><DL> |
746 |
</DL>
|
747 |
</DD>
|
748 |
<DD><DL> |
749 |
|
750 |
<DT><B>Returns:</B><DD>true if the element has children.</DL> |
751 |
</DD>
|
752 |
</DL>
|
753 |
<HR>
|
754 |
|
755 |
<A NAME="getChildrenCount()"><!-- --></A><H3> |
756 |
getChildrenCount</H3>
|
757 |
<PRE>
|
758 |
public int <B>getChildrenCount</B>()</PRE> |
759 |
<DL>
|
760 |
<DD>Returns the number of children.
|
761 |
<P>
|
762 |
<DD><DL> |
763 |
</DL>
|
764 |
</DD>
|
765 |
<DD><DL> |
766 |
|
767 |
<DT><B>Returns:</B><DD>the count.</DL> |
768 |
</DD>
|
769 |
</DL>
|
770 |
<HR>
|
771 |
|
772 |
<A NAME="getChildren()"><!-- --></A><H3> |
773 |
getChildren</H3>
|
774 |
<PRE>
|
775 |
public java.util.Vector <B>getChildren</B>()</PRE> |
776 |
<DL>
|
777 |
<DD>Returns a vector containing all the child elements.
|
778 |
<P>
|
779 |
<DD><DL> |
780 |
</DL>
|
781 |
</DD>
|
782 |
<DD><DL> |
783 |
|
784 |
<DT><B>Returns:</B><DD>the vector.</DL> |
785 |
</DD>
|
786 |
</DL>
|
787 |
<HR>
|
788 |
|
789 |
<A NAME="getChildAtIndex(int)"><!-- --></A><H3> |
790 |
getChildAtIndex</H3>
|
791 |
<PRE>
|
792 |
public <A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A> <B>getChildAtIndex</B>(int index) |
793 |
throws java.lang.ArrayIndexOutOfBoundsException</PRE>
|
794 |
<DL>
|
795 |
<DD>Returns the child at a specific index.
|
796 |
<P>
|
797 |
<DD><DL> |
798 |
</DL>
|
799 |
</DD>
|
800 |
<DD><DL> |
801 |
|
802 |
<DT><B>Returns:</B><DD>the non-null child |
803 |
<DT><B>Throws:</B> |
804 |
<DD><CODE>java.lang.ArrayIndexOutOfBoundsException</CODE> - if the index is out of bounds.</DL> |
805 |
</DD>
|
806 |
</DL>
|
807 |
<HR>
|
808 |
|
809 |
<A NAME="getFirstChildNamed(java.lang.String)"><!-- --></A><H3> |
810 |
getFirstChildNamed</H3>
|
811 |
<PRE>
|
812 |
public <A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A> <B>getFirstChildNamed</B>(java.lang.String name)</PRE> |
813 |
<DL>
|
814 |
<DD>Searches a child element.
|
815 |
<P>
|
816 |
<DD><DL> |
817 |
</DL>
|
818 |
</DD>
|
819 |
<DD><DL> |
820 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the child to search for. |
821 |
<DT><B>Returns:</B><DD>the child element, or null if no such child was found.</DL> |
822 |
</DD>
|
823 |
</DL>
|
824 |
<HR>
|
825 |
|
826 |
<A NAME="getChildrenNamed(java.lang.String)"><!-- --></A><H3> |
827 |
getChildrenNamed</H3>
|
828 |
<PRE>
|
829 |
public java.util.Vector<<A HREF="../../../net/n3/nanoxml/XMLElement.html" title="class in net.n3.nanoxml">XMLElement</A>> <B>getChildrenNamed</B>(java.lang.String name)</PRE> |
830 |
<DL>
|
831 |
<DD>Returns a vector of all child elements named <I>name</I>. |
832 |
<P>
|
833 |
<DD><DL> |
834 |
</DL>
|
835 |
</DD>
|
836 |
<DD><DL> |
837 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the children to search for. |
838 |
<DT><B>Returns:</B><DD>the non-null vector of child elements.</DL> |
839 |
</DD>
|
840 |
</DL>
|
841 |
<HR>
|
842 |
|
843 |
<A NAME="getAttribute(java.lang.String)"><!-- --></A><H3> |
844 |
getAttribute</H3>
|
845 |
<PRE>
|
846 |
public java.lang.String <B>getAttribute</B>(java.lang.String name)</PRE> |
847 |
<DL>
|
848 |
<DD>Returns the value of an attribute.
|
849 |
<P>
|
850 |
<DD><DL> |
851 |
</DL>
|
852 |
</DD>
|
853 |
<DD><DL> |
854 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the non-null name of the attribute. |
855 |
<DT><B>Returns:</B><DD>the value, or null if the attribute does not exist.</DL> |
856 |
</DD>
|
857 |
</DL>
|
858 |
<HR>
|
859 |
|
860 |
<A NAME="getAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3> |
861 |
getAttribute</H3>
|
862 |
<PRE>
|
863 |
public java.lang.String <B>getAttribute</B>(java.lang.String name, |
864 |
java.lang.String defaultValue)</PRE> |
865 |
<DL>
|
866 |
<DD>Returns the value of an attribute.
|
867 |
<P>
|
868 |
<DD><DL> |
869 |
</DL>
|
870 |
</DD>
|
871 |
<DD><DL> |
872 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the non-null name of the attribute.<DD><CODE>defaultValue</CODE> - the default value of the attribute. |
873 |
<DT><B>Returns:</B><DD>the value, or defaultValue if the attribute does not exist.</DL> |
874 |
</DD>
|
875 |
</DL>
|
876 |
<HR>
|
877 |
|
878 |
<A NAME="setAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3> |
879 |
setAttribute</H3>
|
880 |
<PRE>
|
881 |
public void <B>setAttribute</B>(java.lang.String name, |
882 |
java.lang.String value)</PRE> |
883 |
<DL>
|
884 |
<DD>Sets an attribute.
|
885 |
<P>
|
886 |
<DD><DL> |
887 |
</DL>
|
888 |
</DD>
|
889 |
<DD><DL> |
890 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the non-null name of the attribute.<DD><CODE>value</CODE> - the non-null value of the attribute.</DL> |
891 |
</DD>
|
892 |
</DL>
|
893 |
<HR>
|
894 |
|
895 |
<A NAME="removeAttribute(java.lang.String)"><!-- --></A><H3> |
896 |
removeAttribute</H3>
|
897 |
<PRE>
|
898 |
public void <B>removeAttribute</B>(java.lang.String name)</PRE> |
899 |
<DL>
|
900 |
<DD>Removes an attribute.
|
901 |
<P>
|
902 |
<DD><DL> |
903 |
</DL>
|
904 |
</DD>
|
905 |
<DD><DL> |
906 |
<DT><B>Parameters:</B><DD><CODE>name</CODE> - the non-null name of the attribute.</DL> |
907 |
</DD>
|
908 |
</DL>
|
909 |
<HR>
|
910 |
|
911 |
<A NAME="enumerateAttributeNames()"><!-- --></A><H3> |
912 |
enumerateAttributeNames</H3>
|
913 |
<PRE>
|
914 |
public java.util.Enumeration <B>enumerateAttributeNames</B>()</PRE> |
915 |
<DL>
|
916 |
<DD>Returns an enumeration of all attribute names.
|
917 |
<P>
|
918 |
<DD><DL> |
919 |
</DL>
|
920 |
</DD>
|
921 |
<DD><DL> |
922 |
|
923 |
<DT><B>Returns:</B><DD>the non-null enumeration.</DL> |
924 |
</DD>
|
925 |
</DL>
|
926 |
<HR>
|
927 |
|
928 |
<A NAME="hasAttribute(java.lang.String)"><!-- --></A><H3> |
929 |
hasAttribute</H3>
|
930 |
<PRE>
|
931 |
public boolean <B>hasAttribute</B>(java.lang.String name)</PRE> |
932 |
<DL>
|
933 |
<DD>Returns whether an attribute exists.
|
934 |
<P>
|
935 |
<DD><DL> |
936 |
</DL>
|
937 |
</DD>
|
938 |
<DD><DL> |
939 |
|
940 |
<DT><B>Returns:</B><DD>true if the attribute exists.</DL> |
941 |
</DD>
|
942 |
</DL>
|
943 |
<HR>
|
944 |
|
945 |
<A NAME="getAttributes()"><!-- --></A><H3> |
946 |
getAttributes</H3>
|
947 |
<PRE>
|
948 |
public java.util.Properties <B>getAttributes</B>()</PRE> |
949 |
<DL>
|
950 |
<DD>Returns all attributes as a Properties object.
|
951 |
<P>
|
952 |
<DD><DL> |
953 |
</DL>
|
954 |
</DD>
|
955 |
<DD><DL> |
956 |
|
957 |
<DT><B>Returns:</B><DD>the non-null set.</DL> |
958 |
</DD>
|
959 |
</DL>
|
960 |
<HR>
|
961 |
|
962 |
<A NAME="getSystemID()"><!-- --></A><H3> |
963 |
getSystemID</H3>
|
964 |
<PRE>
|
965 |
public java.lang.String <B>getSystemID</B>()</PRE> |
966 |
<DL>
|
967 |
<DD>Returns the system ID of the data where the element started.
|
968 |
<P>
|
969 |
<DD><DL> |
970 |
</DL>
|
971 |
</DD>
|
972 |
<DD><DL> |
973 |
|
974 |
<DT><B>Returns:</B><DD>the system ID, or null if unknown.<DT><B>See Also:</B><DD><A HREF="../../../net/n3/nanoxml/XMLElement.html#getLineNr()"><CODE>getLineNr()</CODE></A></DL> |
975 |
</DD>
|
976 |
</DL>
|
977 |
<HR>
|
978 |
|
979 |
<A NAME="getLineNr()"><!-- --></A><H3> |
980 |
getLineNr</H3>
|
981 |
<PRE>
|
982 |
public int <B>getLineNr</B>()</PRE> |
983 |
<DL>
|
984 |
<DD>Returns the line number in the data where the element started.
|
985 |
<P>
|
986 |
<DD><DL> |
987 |
</DL>
|
988 |
</DD>
|
989 |
<DD><DL> |
990 |
|
991 |
<DT><B>Returns:</B><DD>the line number, or NO_LINE if unknown.<DT><B>See Also:</B><DD><A HREF="../../../net/n3/nanoxml/XMLElement.html#NO_LINE"><CODE>NO_LINE</CODE></A>, |
992 |
<A HREF="../../../net/n3/nanoxml/XMLElement.html#getSystemID()"><CODE>getSystemID()</CODE></A></DL> |
993 |
</DD>
|
994 |
</DL>
|
995 |
<HR>
|
996 |
|
997 |
<A NAME="getContent()"><!-- --></A><H3> |
998 |
getContent</H3>
|
999 |
<PRE>
|
1000 |
public java.lang.String <B>getContent</B>()</PRE> |
1001 |
<DL>
|
1002 |
<DD>Return the #PCDATA content of the element. If the element has a combination of #PCDATA
|
1003 |
content and child elements, the #PCDATA sections can be retrieved as unnamed child objects. |
1004 |
In this case, this method returns null. |
1005 |
<P>
|
1006 |
<DD><DL> |
1007 |
</DL>
|
1008 |
</DD>
|
1009 |
<DD><DL> |
1010 |
|
1011 |
<DT><B>Returns:</B><DD>the content.</DL> |
1012 |
</DD>
|
1013 |
</DL>
|
1014 |
<HR>
|
1015 |
|
1016 |
<A NAME="setContent(java.lang.String)"><!-- --></A><H3> |
1017 |
setContent</H3>
|
1018 |
<PRE>
|
1019 |
public void <B>setContent</B>(java.lang.String content)</PRE> |
1020 |
<DL>
|
1021 |
<DD>Sets the #PCDATA content. It is an error to call this method with a non-null value if there
|
1022 |
are child objects. |
1023 |
<P>
|
1024 |
<DD><DL> |
1025 |
</DL>
|
1026 |
</DD>
|
1027 |
<DD><DL> |
1028 |
<DT><B>Parameters:</B><DD><CODE>content</CODE> - the (possibly null) content.</DL> |
1029 |
</DD>
|
1030 |
</DL>
|
1031 |
<!-- ========= END OF CLASS DATA ========= -->
|
1032 |
<HR>
|
1033 |
|
1034 |
|
1035 |
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
1036 |
<A NAME="navbar_bottom"><!-- --></A> |
1037 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
1038 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
1039 |
<TR>
|
1040 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
1041 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
1042 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
1043 |
<TR ALIGN="center" VALIGN="top"> |
1044 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
1045 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
1046 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
1047 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
1048 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
1049 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
1050 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
1051 |
</TR>
|
1052 |
</TABLE>
|
1053 |
</TD>
|
1054 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
1055 |
</EM>
|
1056 |
</TD>
|
1057 |
</TR>
|
1058 |
|
1059 |
<TR>
|
1060 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
1061 |
<A HREF="../../../net/n3/nanoxml/XMLBuilderFactory.html" title="class in net.n3.nanoxml"><B>PREV CLASS</B></A> |
1062 |
<A HREF="../../../net/n3/nanoxml/XMLEntityResolver.html" title="class in net.n3.nanoxml"><B>NEXT CLASS</B></A></FONT></TD> |
1063 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
1064 |
<A HREF="../../../index.html?net/n3/nanoxml/XMLElement.html" target="_top"><B>FRAMES</B></A> |
1065 |
<A HREF="XMLElement.html" target="_top"><B>NO FRAMES</B></A> |
1066 |
<SCRIPT type="text/javascript"> |
1067 |
<!--
|
1068 |
if(window==top) {
|
1069 |
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
1070 |
}
|
1071 |
//-->
|
1072 |
</SCRIPT>
|
1073 |
<NOSCRIPT>
|
1074 |
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
1075 |
</NOSCRIPT>
|
1076 |
|
1077 |
|
1078 |
</FONT></TD> |
1079 |
</TR>
|
1080 |
<TR>
|
1081 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
1082 |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
1083 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
1084 |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
1085 |
</TR>
|
1086 |
</TABLE>
|
1087 |
<A NAME="skip-navbar_bottom"></A> |
1088 |
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
1089 |
|
1090 |
<HR>
|
1091 |
|
1092 |
</BODY>
|
1093 |
</HTML>
|