svn-gvsig-desktop / tags / tmp_build / build / distribution / izpack_4.2.0 / doc / izpack / javadoc / net / n3 / nanoxml / XMLValidationException.html @ 26384
History | View | Annotate | Download (24.3 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 |
XMLValidationException |
8 |
</TITLE>
|
9 |
|
10 |
<META NAME="keywords" CONTENT="net.n3.nanoxml.XMLValidationException 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="XMLValidationException"; |
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/XMLUtil.html" title="class in net.n3.nanoxml"><B>PREV CLASS</B></A> |
55 |
<A HREF="../../../net/n3/nanoxml/XMLWriter.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/XMLValidationException.html" target="_top"><B>FRAMES</B></A> |
58 |
<A HREF="XMLValidationException.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 XMLValidationException</H2>
|
90 |
<PRE>
|
91 |
java.lang.Object |
92 |
<IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.lang.Throwable |
93 |
<IMG SRC="../../../resources/inherit.gif" ALT="extended by ">java.lang.Exception |
94 |
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../net/n3/nanoxml/XMLException.html" title="class in net.n3.nanoxml">net.n3.nanoxml.XMLException</A> |
95 |
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>net.n3.nanoxml.XMLValidationException</B> |
96 |
</PRE>
|
97 |
<DL>
|
98 |
<DT><B>All Implemented Interfaces:</B> <DD>java.io.Serializable</DD> |
99 |
</DL>
|
100 |
<HR>
|
101 |
<DL>
|
102 |
<DT><PRE>public class <B>XMLValidationException</B><DT>extends <A HREF="../../../net/n3/nanoxml/XMLException.html" title="class in net.n3.nanoxml">XMLException</A></DL> |
103 |
</PRE>
|
104 |
|
105 |
<P>
|
106 |
An XMLValidationException is thrown when the XML passed to the XML parser is well-formed but not |
107 |
valid. |
108 |
<P>
|
109 |
|
110 |
<P>
|
111 |
<DL>
|
112 |
<DT><B>Version:</B></DT> |
113 |
<DD>$Name$, $Revision: 2163 $</DD> |
114 |
<DT><B>Author:</B></DT> |
115 |
<DD>Marc De Scheemaecker</DD> |
116 |
<DT><B>See Also:</B><DD><A HREF="../../../serialized-form.html#net.n3.nanoxml.XMLValidationException">Serialized Form</A></DL> |
117 |
<HR>
|
118 |
|
119 |
<P>
|
120 |
<!-- =========== FIELD SUMMARY =========== -->
|
121 |
|
122 |
<A NAME="field_summary"><!-- --></A> |
123 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
124 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
125 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
126 |
<B>Field Summary</B></FONT></TH> |
127 |
</TR>
|
128 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
129 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
130 |
<CODE>static int</CODE></FONT></TD> |
131 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#ATTRIBUTE_WITH_INVALID_VALUE">ATTRIBUTE_WITH_INVALID_VALUE</A></B></CODE> |
132 |
|
133 |
<BR>
|
134 |
An attribute has an invalid value.</TD> |
135 |
</TR>
|
136 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
137 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
138 |
<CODE>private java.lang.String</CODE></FONT></TD> |
139 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#attributeName">attributeName</A></B></CODE> |
140 |
|
141 |
<BR>
|
142 |
The name of the attribute where the exception occurred.</TD> |
143 |
</TR>
|
144 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
145 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
146 |
<CODE>private java.lang.String</CODE></FONT></TD> |
147 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#attributeValue">attributeValue</A></B></CODE> |
148 |
|
149 |
<BR>
|
150 |
The value of the attribute where the exception occurred.</TD> |
151 |
</TR>
|
152 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
153 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
154 |
<CODE>private java.lang.String</CODE></FONT></TD> |
155 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#elementName">elementName</A></B></CODE> |
156 |
|
157 |
<BR>
|
158 |
The name of the element where the exception occurred.</TD> |
159 |
</TR>
|
160 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
161 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
162 |
<CODE>static int</CODE></FONT></TD> |
163 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#MISC_ERROR">MISC_ERROR</A></B></CODE> |
164 |
|
165 |
<BR>
|
166 |
Another error than those specified in this class was encountered.</TD> |
167 |
</TR>
|
168 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
169 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
170 |
<CODE>static int</CODE></FONT></TD> |
171 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#MISSING_ATTRIBUTE">MISSING_ATTRIBUTE</A></B></CODE> |
172 |
|
173 |
<BR>
|
174 |
An attribute was missing.</TD> |
175 |
</TR>
|
176 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
177 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
178 |
<CODE>static int</CODE></FONT></TD> |
179 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#MISSING_ELEMENT">MISSING_ELEMENT</A></B></CODE> |
180 |
|
181 |
<BR>
|
182 |
An element was missing.</TD> |
183 |
</TR>
|
184 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
185 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
186 |
<CODE>static int</CODE></FONT></TD> |
187 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#MISSING_PCDATA">MISSING_PCDATA</A></B></CODE> |
188 |
|
189 |
<BR>
|
190 |
A PCDATA element was missing.</TD> |
191 |
</TR>
|
192 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
193 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
194 |
<CODE>private static long</CODE></FONT></TD> |
195 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#serialVersionUID">serialVersionUID</A></B></CODE> |
196 |
|
197 |
<BR>
|
198 |
</TD> |
199 |
</TR>
|
200 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
201 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
202 |
<CODE>static int</CODE></FONT></TD> |
203 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#UNEXPECTED_ATTRIBUTE">UNEXPECTED_ATTRIBUTE</A></B></CODE> |
204 |
|
205 |
<BR>
|
206 |
An unexpected attribute was encountered.</TD> |
207 |
</TR>
|
208 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
209 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
210 |
<CODE>static int</CODE></FONT></TD> |
211 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#UNEXPECTED_ELEMENT">UNEXPECTED_ELEMENT</A></B></CODE> |
212 |
|
213 |
<BR>
|
214 |
An unexpected element was encountered.</TD> |
215 |
</TR>
|
216 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
217 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
218 |
<CODE>static int</CODE></FONT></TD> |
219 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#UNEXPECTED_PCDATA">UNEXPECTED_PCDATA</A></B></CODE> |
220 |
|
221 |
<BR>
|
222 |
An unexpected PCDATA element was encountered.</TD> |
223 |
</TR>
|
224 |
</TABLE>
|
225 |
|
226 |
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
227 |
|
228 |
<A NAME="constructor_summary"><!-- --></A> |
229 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
230 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
231 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
232 |
<B>Constructor Summary</B></FONT></TH> |
233 |
</TR>
|
234 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
235 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#XMLValidationException(int, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String)">XMLValidationException</A></B>(int errorType, |
236 |
java.lang.String systemID,
|
237 |
int lineNr,
|
238 |
java.lang.String elementName,
|
239 |
java.lang.String attributeName,
|
240 |
java.lang.String attributeValue,
|
241 |
java.lang.String msg)</CODE> |
242 |
|
243 |
<BR>
|
244 |
Creates a new exception.</TD> |
245 |
</TR>
|
246 |
</TABLE>
|
247 |
|
248 |
<!-- ========== METHOD SUMMARY =========== -->
|
249 |
|
250 |
<A NAME="method_summary"><!-- --></A> |
251 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
252 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
253 |
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
254 |
<B>Method Summary</B></FONT></TH> |
255 |
</TR>
|
256 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
257 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
258 |
<CODE>protected void</CODE></FONT></TD> |
259 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#finalize()">finalize</A></B>()</CODE> |
260 |
|
261 |
<BR>
|
262 |
Cleans up the object when it's destroyed.</TD> |
263 |
</TR>
|
264 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
265 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
266 |
<CODE> java.lang.String</CODE></FONT></TD> |
267 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#getAttributeName()">getAttributeName</A></B>()</CODE> |
268 |
|
269 |
<BR>
|
270 |
Returns the name of the attribute in which the validation is violated.</TD> |
271 |
</TR>
|
272 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
273 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
274 |
<CODE> java.lang.String</CODE></FONT></TD> |
275 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#getAttributeValue()">getAttributeValue</A></B>()</CODE> |
276 |
|
277 |
<BR>
|
278 |
Returns the value of the attribute in which the validation is violated.</TD> |
279 |
</TR>
|
280 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
281 |
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
282 |
<CODE> java.lang.String</CODE></FONT></TD> |
283 |
<TD><CODE><B><A HREF="../../../net/n3/nanoxml/XMLValidationException.html#getElementName()">getElementName</A></B>()</CODE> |
284 |
|
285 |
<BR>
|
286 |
Returns the name of the element in which the validation is violated.</TD> |
287 |
</TR>
|
288 |
</TABLE>
|
289 |
<A NAME="methods_inherited_from_class_net.n3.nanoxml.XMLException"><!-- --></A> |
290 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
291 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
292 |
<TH ALIGN="left"><B>Methods inherited from class net.n3.nanoxml.<A HREF="../../../net/n3/nanoxml/XMLException.html" title="class in net.n3.nanoxml">XMLException</A></B></TH> |
293 |
</TR>
|
294 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
295 |
<TD><CODE><A HREF="../../../net/n3/nanoxml/XMLException.html#getException()">getException</A>, <A HREF="../../../net/n3/nanoxml/XMLException.html#getLineNr()">getLineNr</A>, <A HREF="../../../net/n3/nanoxml/XMLException.html#getSystemID()">getSystemID</A>, <A HREF="../../../net/n3/nanoxml/XMLException.html#printStackTrace()">printStackTrace</A>, <A HREF="../../../net/n3/nanoxml/XMLException.html#printStackTrace(java.io.PrintStream)">printStackTrace</A>, <A HREF="../../../net/n3/nanoxml/XMLException.html#printStackTrace(java.io.PrintWriter)">printStackTrace</A></CODE></TD> |
296 |
</TR>
|
297 |
</TABLE>
|
298 |
<A NAME="methods_inherited_from_class_java.lang.Throwable"><!-- --></A> |
299 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
300 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
301 |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Throwable</B></TH> |
302 |
</TR>
|
303 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
304 |
<TD><CODE>fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString</CODE></TD> |
305 |
</TR>
|
306 |
</TABLE>
|
307 |
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
308 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
309 |
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
310 |
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
311 |
</TR>
|
312 |
<TR BGCOLOR="white" CLASS="TableRowColor"> |
313 |
<TD><CODE>clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> |
314 |
</TR>
|
315 |
</TABLE>
|
316 |
|
317 |
<P>
|
318 |
|
319 |
<!-- ============ FIELD DETAIL =========== -->
|
320 |
|
321 |
<A NAME="field_detail"><!-- --></A> |
322 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
323 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
324 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
325 |
<B>Field Detail</B></FONT></TH> |
326 |
</TR>
|
327 |
</TABLE>
|
328 |
|
329 |
<A NAME="serialVersionUID"><!-- --></A><H3> |
330 |
serialVersionUID</H3>
|
331 |
<PRE>
|
332 |
private static final long <B>serialVersionUID</B></PRE> |
333 |
<DL>
|
334 |
<DL>
|
335 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLValidationException.serialVersionUID">Constant Field Values</A></DL> |
336 |
</DL>
|
337 |
<HR>
|
338 |
|
339 |
<A NAME="MISSING_ELEMENT"><!-- --></A><H3> |
340 |
MISSING_ELEMENT</H3>
|
341 |
<PRE>
|
342 |
public static final int <B>MISSING_ELEMENT</B></PRE> |
343 |
<DL>
|
344 |
<DD>An element was missing.
|
345 |
<P>
|
346 |
<DL>
|
347 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLValidationException.MISSING_ELEMENT">Constant Field Values</A></DL> |
348 |
</DL>
|
349 |
<HR>
|
350 |
|
351 |
<A NAME="UNEXPECTED_ELEMENT"><!-- --></A><H3> |
352 |
UNEXPECTED_ELEMENT</H3>
|
353 |
<PRE>
|
354 |
public static final int <B>UNEXPECTED_ELEMENT</B></PRE> |
355 |
<DL>
|
356 |
<DD>An unexpected element was encountered.
|
357 |
<P>
|
358 |
<DL>
|
359 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLValidationException.UNEXPECTED_ELEMENT">Constant Field Values</A></DL> |
360 |
</DL>
|
361 |
<HR>
|
362 |
|
363 |
<A NAME="MISSING_ATTRIBUTE"><!-- --></A><H3> |
364 |
MISSING_ATTRIBUTE</H3>
|
365 |
<PRE>
|
366 |
public static final int <B>MISSING_ATTRIBUTE</B></PRE> |
367 |
<DL>
|
368 |
<DD>An attribute was missing.
|
369 |
<P>
|
370 |
<DL>
|
371 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLValidationException.MISSING_ATTRIBUTE">Constant Field Values</A></DL> |
372 |
</DL>
|
373 |
<HR>
|
374 |
|
375 |
<A NAME="UNEXPECTED_ATTRIBUTE"><!-- --></A><H3> |
376 |
UNEXPECTED_ATTRIBUTE</H3>
|
377 |
<PRE>
|
378 |
public static final int <B>UNEXPECTED_ATTRIBUTE</B></PRE> |
379 |
<DL>
|
380 |
<DD>An unexpected attribute was encountered.
|
381 |
<P>
|
382 |
<DL>
|
383 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLValidationException.UNEXPECTED_ATTRIBUTE">Constant Field Values</A></DL> |
384 |
</DL>
|
385 |
<HR>
|
386 |
|
387 |
<A NAME="ATTRIBUTE_WITH_INVALID_VALUE"><!-- --></A><H3> |
388 |
ATTRIBUTE_WITH_INVALID_VALUE</H3>
|
389 |
<PRE>
|
390 |
public static final int <B>ATTRIBUTE_WITH_INVALID_VALUE</B></PRE> |
391 |
<DL>
|
392 |
<DD>An attribute has an invalid value.
|
393 |
<P>
|
394 |
<DL>
|
395 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLValidationException.ATTRIBUTE_WITH_INVALID_VALUE">Constant Field Values</A></DL> |
396 |
</DL>
|
397 |
<HR>
|
398 |
|
399 |
<A NAME="MISSING_PCDATA"><!-- --></A><H3> |
400 |
MISSING_PCDATA</H3>
|
401 |
<PRE>
|
402 |
public static final int <B>MISSING_PCDATA</B></PRE> |
403 |
<DL>
|
404 |
<DD>A PCDATA element was missing.
|
405 |
<P>
|
406 |
<DL>
|
407 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLValidationException.MISSING_PCDATA">Constant Field Values</A></DL> |
408 |
</DL>
|
409 |
<HR>
|
410 |
|
411 |
<A NAME="UNEXPECTED_PCDATA"><!-- --></A><H3> |
412 |
UNEXPECTED_PCDATA</H3>
|
413 |
<PRE>
|
414 |
public static final int <B>UNEXPECTED_PCDATA</B></PRE> |
415 |
<DL>
|
416 |
<DD>An unexpected PCDATA element was encountered.
|
417 |
<P>
|
418 |
<DL>
|
419 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLValidationException.UNEXPECTED_PCDATA">Constant Field Values</A></DL> |
420 |
</DL>
|
421 |
<HR>
|
422 |
|
423 |
<A NAME="MISC_ERROR"><!-- --></A><H3> |
424 |
MISC_ERROR</H3>
|
425 |
<PRE>
|
426 |
public static final int <B>MISC_ERROR</B></PRE> |
427 |
<DL>
|
428 |
<DD>Another error than those specified in this class was encountered.
|
429 |
<P>
|
430 |
<DL>
|
431 |
<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#net.n3.nanoxml.XMLValidationException.MISC_ERROR">Constant Field Values</A></DL> |
432 |
</DL>
|
433 |
<HR>
|
434 |
|
435 |
<A NAME="elementName"><!-- --></A><H3> |
436 |
elementName</H3>
|
437 |
<PRE>
|
438 |
private java.lang.String <B>elementName</B></PRE> |
439 |
<DL>
|
440 |
<DD>The name of the element where the exception occurred.
|
441 |
<P>
|
442 |
<DL>
|
443 |
</DL>
|
444 |
</DL>
|
445 |
<HR>
|
446 |
|
447 |
<A NAME="attributeName"><!-- --></A><H3> |
448 |
attributeName</H3>
|
449 |
<PRE>
|
450 |
private java.lang.String <B>attributeName</B></PRE> |
451 |
<DL>
|
452 |
<DD>The name of the attribute where the exception occurred.
|
453 |
<P>
|
454 |
<DL>
|
455 |
</DL>
|
456 |
</DL>
|
457 |
<HR>
|
458 |
|
459 |
<A NAME="attributeValue"><!-- --></A><H3> |
460 |
attributeValue</H3>
|
461 |
<PRE>
|
462 |
private java.lang.String <B>attributeValue</B></PRE> |
463 |
<DL>
|
464 |
<DD>The value of the attribute where the exception occurred.
|
465 |
<P>
|
466 |
<DL>
|
467 |
</DL>
|
468 |
</DL>
|
469 |
|
470 |
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
471 |
|
472 |
<A NAME="constructor_detail"><!-- --></A> |
473 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
474 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
475 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
476 |
<B>Constructor Detail</B></FONT></TH> |
477 |
</TR>
|
478 |
</TABLE>
|
479 |
|
480 |
<A NAME="XMLValidationException(int, java.lang.String, int, java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3> |
481 |
XMLValidationException</H3>
|
482 |
<PRE>
|
483 |
public <B>XMLValidationException</B>(int errorType, |
484 |
java.lang.String systemID,
|
485 |
int lineNr,
|
486 |
java.lang.String elementName,
|
487 |
java.lang.String attributeName,
|
488 |
java.lang.String attributeValue,
|
489 |
java.lang.String msg)</PRE> |
490 |
<DL>
|
491 |
<DD>Creates a new exception.
|
492 |
<P>
|
493 |
<DL>
|
494 |
<DT><B>Parameters:</B><DD><CODE>errorType</CODE> - the type of validity error<DD><CODE>systemID</CODE> - the system ID from where the data came<DD><CODE>lineNr</CODE> - the line number in the XML data where the exception occurred.<DD><CODE>elementName</CODE> - the name of the offending element<DD><CODE>attributeName</CODE> - the name of the offending attribute<DD><CODE>attributeValue</CODE> - the value of the offending attribute<DD><CODE>msg</CODE> - the message of the exception.</DL> |
495 |
</DL>
|
496 |
|
497 |
<!-- ============ METHOD DETAIL ========== -->
|
498 |
|
499 |
<A NAME="method_detail"><!-- --></A> |
500 |
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
501 |
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
502 |
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
503 |
<B>Method Detail</B></FONT></TH> |
504 |
</TR>
|
505 |
</TABLE>
|
506 |
|
507 |
<A NAME="finalize()"><!-- --></A><H3> |
508 |
finalize</H3>
|
509 |
<PRE>
|
510 |
protected void <B>finalize</B>() |
511 |
throws java.lang.Throwable</PRE>
|
512 |
<DL>
|
513 |
<DD>Cleans up the object when it's destroyed.
|
514 |
<P>
|
515 |
<DD><DL> |
516 |
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../net/n3/nanoxml/XMLException.html#finalize()">finalize</A></CODE> in class <CODE><A HREF="../../../net/n3/nanoxml/XMLException.html" title="class in net.n3.nanoxml">XMLException</A></CODE></DL> |
517 |
</DD>
|
518 |
<DD><DL> |
519 |
|
520 |
<DT><B>Throws:</B> |
521 |
<DD><CODE>java.lang.Throwable</CODE></DL> |
522 |
</DD>
|
523 |
</DL>
|
524 |
<HR>
|
525 |
|
526 |
<A NAME="getElementName()"><!-- --></A><H3> |
527 |
getElementName</H3>
|
528 |
<PRE>
|
529 |
public java.lang.String <B>getElementName</B>()</PRE> |
530 |
<DL>
|
531 |
<DD>Returns the name of the element in which the validation is violated. If there is no current
|
532 |
element, null is returned. |
533 |
<P>
|
534 |
<DD><DL> |
535 |
</DL>
|
536 |
</DD>
|
537 |
</DL>
|
538 |
<HR>
|
539 |
|
540 |
<A NAME="getAttributeName()"><!-- --></A><H3> |
541 |
getAttributeName</H3>
|
542 |
<PRE>
|
543 |
public java.lang.String <B>getAttributeName</B>()</PRE> |
544 |
<DL>
|
545 |
<DD>Returns the name of the attribute in which the validation is violated. If there is no current
|
546 |
attribute, null is returned. |
547 |
<P>
|
548 |
<DD><DL> |
549 |
</DL>
|
550 |
</DD>
|
551 |
</DL>
|
552 |
<HR>
|
553 |
|
554 |
<A NAME="getAttributeValue()"><!-- --></A><H3> |
555 |
getAttributeValue</H3>
|
556 |
<PRE>
|
557 |
public java.lang.String <B>getAttributeValue</B>()</PRE> |
558 |
<DL>
|
559 |
<DD>Returns the value of the attribute in which the validation is violated. If there is no
|
560 |
current attribute, null is returned. |
561 |
<P>
|
562 |
<DD><DL> |
563 |
</DL>
|
564 |
</DD>
|
565 |
</DL>
|
566 |
<!-- ========= END OF CLASS DATA ========= -->
|
567 |
<HR>
|
568 |
|
569 |
|
570 |
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
571 |
<A NAME="navbar_bottom"><!-- --></A> |
572 |
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
573 |
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
574 |
<TR>
|
575 |
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
576 |
<A NAME="navbar_bottom_firstrow"><!-- --></A> |
577 |
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
578 |
<TR ALIGN="center" VALIGN="top"> |
579 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
580 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
581 |
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
582 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
583 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
584 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
585 |
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
586 |
</TR>
|
587 |
</TABLE>
|
588 |
</TD>
|
589 |
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
590 |
</EM>
|
591 |
</TD>
|
592 |
</TR>
|
593 |
|
594 |
<TR>
|
595 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
596 |
<A HREF="../../../net/n3/nanoxml/XMLUtil.html" title="class in net.n3.nanoxml"><B>PREV CLASS</B></A> |
597 |
<A HREF="../../../net/n3/nanoxml/XMLWriter.html" title="class in net.n3.nanoxml"><B>NEXT CLASS</B></A></FONT></TD> |
598 |
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
599 |
<A HREF="../../../index.html?net/n3/nanoxml/XMLValidationException.html" target="_top"><B>FRAMES</B></A> |
600 |
<A HREF="XMLValidationException.html" target="_top"><B>NO FRAMES</B></A> |
601 |
<SCRIPT type="text/javascript"> |
602 |
<!--
|
603 |
if(window==top) {
|
604 |
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
605 |
}
|
606 |
//-->
|
607 |
</SCRIPT>
|
608 |
<NOSCRIPT>
|
609 |
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> |
610 |
</NOSCRIPT>
|
611 |
|
612 |
|
613 |
</FONT></TD> |
614 |
</TR>
|
615 |
<TR>
|
616 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
617 |
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
618 |
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
619 |
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
620 |
</TR>
|
621 |
</TABLE>
|
622 |
<A NAME="skip-navbar_bottom"></A> |
623 |
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
624 |
|
625 |
<HR>
|
626 |
|
627 |
</BODY>
|
628 |
</HTML>
|