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.4.2_13) on Mon Oct 01 14:33:24 NZST 2007 -->
|
---|
6 | <TITLE>
|
---|
7 | XMLValidateTask (Apache Ant API)
|
---|
8 | </TITLE>
|
---|
9 |
|
---|
10 | <META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.optional.XMLValidateTask 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="XMLValidateTask (Apache Ant API)";
|
---|
18 | }
|
---|
19 | </SCRIPT>
|
---|
20 |
|
---|
21 | </HEAD>
|
---|
22 |
|
---|
23 | <BODY BGCOLOR="white" onload="windowTitle();">
|
---|
24 |
|
---|
25 |
|
---|
26 | <!-- ========= START OF TOP NAVBAR ======= -->
|
---|
27 | <A NAME="navbar_top"><!-- --></A>
|
---|
28 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
---|
29 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
30 | <TR>
|
---|
31 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
32 | <A NAME="navbar_top_firstrow"><!-- --></A>
|
---|
33 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
34 | <TR ALIGN="center" VALIGN="top">
|
---|
35 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
42 | </TR>
|
---|
43 | </TABLE>
|
---|
44 | </TD>
|
---|
45 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
46 | </EM>
|
---|
47 | </TD>
|
---|
48 | </TR>
|
---|
49 |
|
---|
50 | <TR>
|
---|
51 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
52 | <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XalanLiaison.html" title="class in org.apache.tools.ant.taskdefs.optional"><B>PREV CLASS</B></A>
|
---|
53 | <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.Attribute.html" title="class in org.apache.tools.ant.taskdefs.optional"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
54 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
55 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
56 | <A HREF="XMLValidateTask.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <SCRIPT type="text/javascript">
|
---|
58 | <!--
|
---|
59 | if(window==top) {
|
---|
60 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
61 | }
|
---|
62 | //-->
|
---|
63 | </SCRIPT>
|
---|
64 | <NOSCRIPT>
|
---|
65 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
66 | </NOSCRIPT>
|
---|
67 |
|
---|
68 | </FONT></TD>
|
---|
69 | </TR>
|
---|
70 | <TR>
|
---|
71 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
72 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
75 | </TR>
|
---|
76 | </TABLE>
|
---|
77 | <A NAME="skip-navbar_top"></A>
|
---|
78 | <!-- ========= END OF TOP NAVBAR ========= -->
|
---|
79 |
|
---|
80 | <HR>
|
---|
81 | <!-- ======== START OF CLASS DATA ======== -->
|
---|
82 | <H2>
|
---|
83 | <FONT SIZE="-1">
|
---|
84 | org.apache.tools.ant.taskdefs.optional</FONT>
|
---|
85 | <BR>
|
---|
86 | Class XMLValidateTask</H2>
|
---|
87 | <PRE>
|
---|
88 | java.lang.Object
|
---|
89 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">org.apache.tools.ant.ProjectComponent</A>
|
---|
90 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">org.apache.tools.ant.Task</A>
|
---|
91 | <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.optional.XMLValidateTask</B>
|
---|
92 | </PRE>
|
---|
93 | <HR>
|
---|
94 | <DL>
|
---|
95 | <DT>public class <B>XMLValidateTask</B><DT>extends <A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></DL>
|
---|
96 |
|
---|
97 | <P>
|
---|
98 | Checks XML files are valid (or only well formed). The
|
---|
99 | task uses the SAX2 parser implementation provided by JAXP by default
|
---|
100 | (probably the one that is used by Ant itself), but one can specify any
|
---|
101 | SAX1/2 parser if needed.
|
---|
102 | <P>
|
---|
103 |
|
---|
104 | <P>
|
---|
105 | <HR>
|
---|
106 |
|
---|
107 | <P>
|
---|
108 | <!-- ======== NESTED CLASS SUMMARY ======== -->
|
---|
109 |
|
---|
110 | <A NAME="nested_class_summary"><!-- --></A>
|
---|
111 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
112 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
113 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
114 | <B>Nested Class Summary</B></FONT></TD>
|
---|
115 | </TR>
|
---|
116 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
117 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
118 | <CODE> class</CODE></FONT></TD>
|
---|
119 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.Attribute.html" title="class in org.apache.tools.ant.taskdefs.optional">XMLValidateTask.Attribute</A></B></CODE>
|
---|
120 |
|
---|
121 | <BR>
|
---|
122 | The class to create to set a feature of the parser.</TD>
|
---|
123 | </TR>
|
---|
124 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
125 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
126 | <CODE> class</CODE></FONT></TD>
|
---|
127 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.Property.html" title="class in org.apache.tools.ant.taskdefs.optional">XMLValidateTask.Property</A></B></CODE>
|
---|
128 |
|
---|
129 | <BR>
|
---|
130 | A Parser property.</TD>
|
---|
131 | </TR>
|
---|
132 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
133 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
134 | <CODE>protected class</CODE></FONT></TD>
|
---|
135 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.ValidatorErrorHandler.html" title="class in org.apache.tools.ant.taskdefs.optional">XMLValidateTask.ValidatorErrorHandler</A></B></CODE>
|
---|
136 |
|
---|
137 | <BR>
|
---|
138 | ValidatorErrorHandler role :
|
---|
139 |
|
---|
140 | log SAX parse exceptions,
|
---|
141 | remember if an error occurred
|
---|
142 | </TD>
|
---|
143 | </TR>
|
---|
144 | </TABLE>
|
---|
145 |
|
---|
146 | <!-- =========== FIELD SUMMARY =========== -->
|
---|
147 |
|
---|
148 | <A NAME="field_summary"><!-- --></A>
|
---|
149 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
150 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
151 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
152 | <B>Field Summary</B></FONT></TD>
|
---|
153 | </TR>
|
---|
154 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
155 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
156 | <CODE>protected <A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
157 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#classpath">classpath</A></B></CODE>
|
---|
158 |
|
---|
159 | <BR>
|
---|
160 | </TD>
|
---|
161 | </TR>
|
---|
162 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
163 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
164 | <CODE>protected <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.ValidatorErrorHandler.html" title="class in org.apache.tools.ant.taskdefs.optional">XMLValidateTask.ValidatorErrorHandler</A></CODE></FONT></TD>
|
---|
165 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#errorHandler">errorHandler</A></B></CODE>
|
---|
166 |
|
---|
167 | <BR>
|
---|
168 | </TD>
|
---|
169 | </TR>
|
---|
170 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
171 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
172 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
173 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#failOnError">failOnError</A></B></CODE>
|
---|
174 |
|
---|
175 | <BR>
|
---|
176 | </TD>
|
---|
177 | </TR>
|
---|
178 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
179 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
180 | <CODE>protected java.io.File</CODE></FONT></TD>
|
---|
181 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#file">file</A></B></CODE>
|
---|
182 |
|
---|
183 | <BR>
|
---|
184 | file to be validated</TD>
|
---|
185 | </TR>
|
---|
186 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
187 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
188 | <CODE>protected java.util.Vector</CODE></FONT></TD>
|
---|
189 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#filesets">filesets</A></B></CODE>
|
---|
190 |
|
---|
191 | <BR>
|
---|
192 | sets of file to be validated</TD>
|
---|
193 | </TR>
|
---|
194 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
195 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
196 | <CODE>protected static java.lang.String</CODE></FONT></TD>
|
---|
197 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#INIT_FAILED_MSG">INIT_FAILED_MSG</A></B></CODE>
|
---|
198 |
|
---|
199 | <BR>
|
---|
200 | </TD>
|
---|
201 | </TR>
|
---|
202 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
203 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
204 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
205 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#lenient">lenient</A></B></CODE>
|
---|
206 |
|
---|
207 | <BR>
|
---|
208 | </TD>
|
---|
209 | </TR>
|
---|
210 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
211 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
212 | <CODE>protected java.lang.String</CODE></FONT></TD>
|
---|
213 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#readerClassName">readerClassName</A></B></CODE>
|
---|
214 |
|
---|
215 | <BR>
|
---|
216 | </TD>
|
---|
217 | </TR>
|
---|
218 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
219 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
220 | <CODE>protected boolean</CODE></FONT></TD>
|
---|
221 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#warn">warn</A></B></CODE>
|
---|
222 |
|
---|
223 | <BR>
|
---|
224 | </TD>
|
---|
225 | </TR>
|
---|
226 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
227 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
228 | <CODE>protected org.xml.sax.XMLReader</CODE></FONT></TD>
|
---|
229 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#xmlReader">xmlReader</A></B></CODE>
|
---|
230 |
|
---|
231 | <BR>
|
---|
232 | the parser is viewed as a SAX2 XMLReader.</TD>
|
---|
233 | </TR>
|
---|
234 | </TABLE>
|
---|
235 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
236 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
237 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
238 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
239 | </TR>
|
---|
240 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
241 | <TD><CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html#description">description</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#location">location</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#target">target</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#taskName">taskName</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#taskType">taskType</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#wrapper">wrapper</A></CODE></TD>
|
---|
242 | </TR>
|
---|
243 | </TABLE>
|
---|
244 | <A NAME="fields_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
245 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
246 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
247 | <TD><B>Fields inherited from class org.apache.tools.ant.<A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
248 | </TR>
|
---|
249 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
250 | <TD><CODE><A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html#project">project</A></CODE></TD>
|
---|
251 | </TR>
|
---|
252 | </TABLE>
|
---|
253 |
|
---|
254 | <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
---|
255 |
|
---|
256 | <A NAME="constructor_summary"><!-- --></A>
|
---|
257 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
258 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
259 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
260 | <B>Constructor Summary</B></FONT></TD>
|
---|
261 | </TR>
|
---|
262 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
263 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#XMLValidateTask()">XMLValidateTask</A></B>()</CODE>
|
---|
264 |
|
---|
265 | <BR>
|
---|
266 | </TD>
|
---|
267 | </TR>
|
---|
268 | </TABLE>
|
---|
269 |
|
---|
270 | <!-- ========== METHOD SUMMARY =========== -->
|
---|
271 |
|
---|
272 | <A NAME="method_summary"><!-- --></A>
|
---|
273 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
274 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
275 | <TD COLSPAN=2><FONT SIZE="+2">
|
---|
276 | <B>Method Summary</B></FONT></TD>
|
---|
277 | </TR>
|
---|
278 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
279 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
280 | <CODE> void</CODE></FONT></TD>
|
---|
281 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog)">addConfiguredXMLCatalog</A></B>(<A HREF="../../../../../../org/apache/tools/ant/types/XMLCatalog.html" title="class in org.apache.tools.ant.types">XMLCatalog</A> catalog)</CODE>
|
---|
282 |
|
---|
283 | <BR>
|
---|
284 | add an XMLCatalog as a nested element; optional.</TD>
|
---|
285 | </TR>
|
---|
286 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
287 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
288 | <CODE> void</CODE></FONT></TD>
|
---|
289 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#addFileset(org.apache.tools.ant.types.FileSet)">addFileset</A></B>(<A HREF="../../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> set)</CODE>
|
---|
290 |
|
---|
291 | <BR>
|
---|
292 | specify a set of file to be checked</TD>
|
---|
293 | </TR>
|
---|
294 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
295 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
296 | <CODE> <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.Attribute.html" title="class in org.apache.tools.ant.taskdefs.optional">XMLValidateTask.Attribute</A></CODE></FONT></TD>
|
---|
297 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#createAttribute()">createAttribute</A></B>()</CODE>
|
---|
298 |
|
---|
299 | <BR>
|
---|
300 | Add an attribute nested element.</TD>
|
---|
301 | </TR>
|
---|
302 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
303 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
304 | <CODE> <A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A></CODE></FONT></TD>
|
---|
305 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#createClasspath()">createClasspath</A></B>()</CODE>
|
---|
306 |
|
---|
307 | <BR>
|
---|
308 | </TD>
|
---|
309 | </TR>
|
---|
310 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
311 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
312 | <CODE> <A HREF="../../../../../../org/apache/tools/ant/types/DTDLocation.html" title="class in org.apache.tools.ant.types">DTDLocation</A></CODE></FONT></TD>
|
---|
313 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#createDTD()">createDTD</A></B>()</CODE>
|
---|
314 |
|
---|
315 | <BR>
|
---|
316 | Create a DTD location record; optional.</TD>
|
---|
317 | </TR>
|
---|
318 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
319 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
320 | <CODE> <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.Property.html" title="class in org.apache.tools.ant.taskdefs.optional">XMLValidateTask.Property</A></CODE></FONT></TD>
|
---|
321 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#createProperty()">createProperty</A></B>()</CODE>
|
---|
322 |
|
---|
323 | <BR>
|
---|
324 | Creates a property.</TD>
|
---|
325 | </TR>
|
---|
326 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
327 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
328 | <CODE> void</CODE></FONT></TD>
|
---|
329 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#execute()">execute</A></B>()</CODE>
|
---|
330 |
|
---|
331 | <BR>
|
---|
332 | execute the task</TD>
|
---|
333 | </TR>
|
---|
334 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
335 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
336 | <CODE>protected org.xml.sax.EntityResolver</CODE></FONT></TD>
|
---|
337 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#getEntityResolver()">getEntityResolver</A></B>()</CODE>
|
---|
338 |
|
---|
339 | <BR>
|
---|
340 | accessor to the xmlCatalog used in the task</TD>
|
---|
341 | </TR>
|
---|
342 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
343 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
344 | <CODE> void</CODE></FONT></TD>
|
---|
345 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#init()">init</A></B>()</CODE>
|
---|
346 |
|
---|
347 | <BR>
|
---|
348 | Called by the project to let the task initialize properly.</TD>
|
---|
349 | </TR>
|
---|
350 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
351 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
352 | <CODE> void</CODE></FONT></TD>
|
---|
353 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setClassName(java.lang.String)">setClassName</A></B>(java.lang.String className)</CODE>
|
---|
354 |
|
---|
355 | <BR>
|
---|
356 | Specify the class name of the SAX parser to be used.</TD>
|
---|
357 | </TR>
|
---|
358 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
359 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
360 | <CODE> void</CODE></FONT></TD>
|
---|
361 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setClasspath(org.apache.tools.ant.types.Path)">setClasspath</A></B>(<A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</CODE>
|
---|
362 |
|
---|
363 | <BR>
|
---|
364 | Specify the classpath to be searched to load the parser (optional)</TD>
|
---|
365 | </TR>
|
---|
366 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
367 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
368 | <CODE> void</CODE></FONT></TD>
|
---|
369 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setClasspathRef(org.apache.tools.ant.types.Reference)">setClasspathRef</A></B>(<A HREF="../../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A> r)</CODE>
|
---|
370 |
|
---|
371 | <BR>
|
---|
372 | Where to find the parser class; optional.</TD>
|
---|
373 | </TR>
|
---|
374 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
375 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
---|
376 | <CODE> void</CODE></FONT></TD>
|
---|
377 | <TD><CODE><B><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setFailOnError(boolean)">setFailOnError</A></B>(boolean fail)</CODE>
|
---|
378 |
|
---|
379 | <BR>
|
---|
380 | Specify how parser error are to be handled.</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="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setFile(java.io.File)">setFile</A></B>(java.io.File file)</CODE>
|
---|
386 |
|
---|
387 | <BR>
|
---|
388 | specify the file to be checked; optional.</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="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setLenient(boolean)">setLenient</A></B>(boolean bool)</CODE>
|
---|
394 |
|
---|
395 | <BR>
|
---|
396 | Specify whether the parser should be validating.</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="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setWarn(boolean)">setWarn</A></B>(boolean bool)</CODE>
|
---|
402 |
|
---|
403 | <BR>
|
---|
404 | Specify how parser error are to be handled.</TD>
|
---|
405 | </TR>
|
---|
406 | </TABLE>
|
---|
407 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.Task"><!-- --></A>
|
---|
408 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
409 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
410 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></B></TD>
|
---|
411 | </TR>
|
---|
412 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
413 | <TD><CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html#getDescription()">getDescription</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getLocation()">getLocation</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getOwningTarget()">getOwningTarget</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getRuntimeConfigurableWrapper()">getRuntimeConfigurableWrapper</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getTaskName()">getTaskName</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getTaskType()">getTaskType</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#getWrapper()">getWrapper</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleErrorFlush(java.lang.String)">handleErrorFlush</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleErrorOutput(java.lang.String)">handleErrorOutput</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleFlush(java.lang.String)">handleFlush</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleInput(byte[], int, int)">handleInput</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#handleOutput(java.lang.String)">handleOutput</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#isInvalid()">isInvalid</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String)">log</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#log(java.lang.String, int)">log</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#maybeConfigure()">maybeConfigure</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#perform()">perform</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#reconfigure()">reconfigure</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setDescription(java.lang.String)">setDescription</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setLocation(org.apache.tools.ant.Location)">setLocation</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setOwningTarget(org.apache.tools.ant.Target)">setOwningTarget</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setRuntimeConfigurableWrapper(org.apache.tools.ant.RuntimeConfigurable)">setRuntimeConfigurableWrapper</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setTaskName(java.lang.String)">setTaskName</A>, <A HREF="../../../../../../org/apache/tools/ant/Task.html#setTaskType(java.lang.String)">setTaskType</A></CODE></TD>
|
---|
414 | </TR>
|
---|
415 | </TABLE>
|
---|
416 | <A NAME="methods_inherited_from_class_org.apache.tools.ant.ProjectComponent"><!-- --></A>
|
---|
417 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
418 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
419 | <TD><B>Methods inherited from class org.apache.tools.ant.<A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html" title="class in org.apache.tools.ant">ProjectComponent</A></B></TD>
|
---|
420 | </TR>
|
---|
421 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
422 | <TD><CODE><A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html#getProject()">getProject</A>, <A HREF="../../../../../../org/apache/tools/ant/ProjectComponent.html#setProject(org.apache.tools.ant.Project)">setProject</A></CODE></TD>
|
---|
423 | </TR>
|
---|
424 | </TABLE>
|
---|
425 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
---|
426 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
427 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
---|
428 | <TD><B>Methods inherited from class java.lang.Object</B></TD>
|
---|
429 | </TR>
|
---|
430 | <TR BGCOLOR="white" CLASS="TableRowColor">
|
---|
431 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
---|
432 | </TR>
|
---|
433 | </TABLE>
|
---|
434 |
|
---|
435 | <P>
|
---|
436 |
|
---|
437 | <!-- ============ FIELD DETAIL =========== -->
|
---|
438 |
|
---|
439 | <A NAME="field_detail"><!-- --></A>
|
---|
440 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
441 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
442 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
443 | <B>Field Detail</B></FONT></TD>
|
---|
444 | </TR>
|
---|
445 | </TABLE>
|
---|
446 |
|
---|
447 | <A NAME="INIT_FAILED_MSG"><!-- --></A><H3>
|
---|
448 | INIT_FAILED_MSG</H3>
|
---|
449 | <PRE>
|
---|
450 | protected static final java.lang.String <B>INIT_FAILED_MSG</B></PRE>
|
---|
451 | <DL>
|
---|
452 | <DL>
|
---|
453 | <DT><B>See Also:</B><DD><A HREF="../../../../../../constant-values.html#org.apache.tools.ant.taskdefs.optional.XMLValidateTask.INIT_FAILED_MSG">Constant Field Values</A></DL>
|
---|
454 | </DL>
|
---|
455 | <HR>
|
---|
456 |
|
---|
457 | <A NAME="failOnError"><!-- --></A><H3>
|
---|
458 | failOnError</H3>
|
---|
459 | <PRE>
|
---|
460 | protected boolean <B>failOnError</B></PRE>
|
---|
461 | <DL>
|
---|
462 | <DL>
|
---|
463 | </DL>
|
---|
464 | </DL>
|
---|
465 | <HR>
|
---|
466 |
|
---|
467 | <A NAME="warn"><!-- --></A><H3>
|
---|
468 | warn</H3>
|
---|
469 | <PRE>
|
---|
470 | protected boolean <B>warn</B></PRE>
|
---|
471 | <DL>
|
---|
472 | <DL>
|
---|
473 | </DL>
|
---|
474 | </DL>
|
---|
475 | <HR>
|
---|
476 |
|
---|
477 | <A NAME="lenient"><!-- --></A><H3>
|
---|
478 | lenient</H3>
|
---|
479 | <PRE>
|
---|
480 | protected boolean <B>lenient</B></PRE>
|
---|
481 | <DL>
|
---|
482 | <DL>
|
---|
483 | </DL>
|
---|
484 | </DL>
|
---|
485 | <HR>
|
---|
486 |
|
---|
487 | <A NAME="readerClassName"><!-- --></A><H3>
|
---|
488 | readerClassName</H3>
|
---|
489 | <PRE>
|
---|
490 | protected java.lang.String <B>readerClassName</B></PRE>
|
---|
491 | <DL>
|
---|
492 | <DL>
|
---|
493 | </DL>
|
---|
494 | </DL>
|
---|
495 | <HR>
|
---|
496 |
|
---|
497 | <A NAME="file"><!-- --></A><H3>
|
---|
498 | file</H3>
|
---|
499 | <PRE>
|
---|
500 | protected java.io.File <B>file</B></PRE>
|
---|
501 | <DL>
|
---|
502 | <DD>file to be validated
|
---|
503 | <P>
|
---|
504 | <DL>
|
---|
505 | </DL>
|
---|
506 | </DL>
|
---|
507 | <HR>
|
---|
508 |
|
---|
509 | <A NAME="filesets"><!-- --></A><H3>
|
---|
510 | filesets</H3>
|
---|
511 | <PRE>
|
---|
512 | protected java.util.Vector <B>filesets</B></PRE>
|
---|
513 | <DL>
|
---|
514 | <DD>sets of file to be validated
|
---|
515 | <P>
|
---|
516 | <DL>
|
---|
517 | </DL>
|
---|
518 | </DL>
|
---|
519 | <HR>
|
---|
520 |
|
---|
521 | <A NAME="classpath"><!-- --></A><H3>
|
---|
522 | classpath</H3>
|
---|
523 | <PRE>
|
---|
524 | protected <A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>classpath</B></PRE>
|
---|
525 | <DL>
|
---|
526 | <DL>
|
---|
527 | </DL>
|
---|
528 | </DL>
|
---|
529 | <HR>
|
---|
530 |
|
---|
531 | <A NAME="xmlReader"><!-- --></A><H3>
|
---|
532 | xmlReader</H3>
|
---|
533 | <PRE>
|
---|
534 | protected org.xml.sax.XMLReader <B>xmlReader</B></PRE>
|
---|
535 | <DL>
|
---|
536 | <DD>the parser is viewed as a SAX2 XMLReader. If a SAX1 parser is specified,
|
---|
537 | it's wrapped in an adapter that make it behave as a XMLReader.
|
---|
538 | a more 'standard' way of doing this would be to use the JAXP1.1 SAXParser
|
---|
539 | interface.
|
---|
540 | <P>
|
---|
541 | <DL>
|
---|
542 | </DL>
|
---|
543 | </DL>
|
---|
544 | <HR>
|
---|
545 |
|
---|
546 | <A NAME="errorHandler"><!-- --></A><H3>
|
---|
547 | errorHandler</H3>
|
---|
548 | <PRE>
|
---|
549 | protected <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.ValidatorErrorHandler.html" title="class in org.apache.tools.ant.taskdefs.optional">XMLValidateTask.ValidatorErrorHandler</A> <B>errorHandler</B></PRE>
|
---|
550 | <DL>
|
---|
551 | <DL>
|
---|
552 | </DL>
|
---|
553 | </DL>
|
---|
554 |
|
---|
555 | <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
---|
556 |
|
---|
557 | <A NAME="constructor_detail"><!-- --></A>
|
---|
558 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
559 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
560 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
561 | <B>Constructor Detail</B></FONT></TD>
|
---|
562 | </TR>
|
---|
563 | </TABLE>
|
---|
564 |
|
---|
565 | <A NAME="XMLValidateTask()"><!-- --></A><H3>
|
---|
566 | XMLValidateTask</H3>
|
---|
567 | <PRE>
|
---|
568 | public <B>XMLValidateTask</B>()</PRE>
|
---|
569 | <DL>
|
---|
570 | </DL>
|
---|
571 |
|
---|
572 | <!-- ============ METHOD DETAIL ========== -->
|
---|
573 |
|
---|
574 | <A NAME="method_detail"><!-- --></A>
|
---|
575 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
---|
576 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
---|
577 | <TD COLSPAN=1><FONT SIZE="+2">
|
---|
578 | <B>Method Detail</B></FONT></TD>
|
---|
579 | </TR>
|
---|
580 | </TABLE>
|
---|
581 |
|
---|
582 | <A NAME="setFailOnError(boolean)"><!-- --></A><H3>
|
---|
583 | setFailOnError</H3>
|
---|
584 | <PRE>
|
---|
585 | public void <B>setFailOnError</B>(boolean fail)</PRE>
|
---|
586 | <DL>
|
---|
587 | <DD>Specify how parser error are to be handled.
|
---|
588 | Optional, default is <code>true</code>.
|
---|
589 | <p>
|
---|
590 | If set to <code>true</code> (default), throw a buildException if the
|
---|
591 | parser yields an error.
|
---|
592 | <P>
|
---|
593 | <DD><DL>
|
---|
594 | <DT><B>Parameters:</B><DD><CODE>fail</CODE> - if set to <code>false</code> do not fail on error</DL>
|
---|
595 | </DD>
|
---|
596 | </DL>
|
---|
597 | <HR>
|
---|
598 |
|
---|
599 | <A NAME="setWarn(boolean)"><!-- --></A><H3>
|
---|
600 | setWarn</H3>
|
---|
601 | <PRE>
|
---|
602 | public void <B>setWarn</B>(boolean bool)</PRE>
|
---|
603 | <DL>
|
---|
604 | <DD>Specify how parser error are to be handled.
|
---|
605 | <p>
|
---|
606 | If set to <code>true</true> (default), log a warn message for each SAX warn event.
|
---|
607 | <P>
|
---|
608 | <DD><DL>
|
---|
609 | <DT><B>Parameters:</B><DD><CODE>bool</CODE> - if set to <code>false</code> do not send warnings</DL>
|
---|
610 | </DD>
|
---|
611 | </DL>
|
---|
612 | <HR>
|
---|
613 |
|
---|
614 | <A NAME="setLenient(boolean)"><!-- --></A><H3>
|
---|
615 | setLenient</H3>
|
---|
616 | <PRE>
|
---|
617 | public void <B>setLenient</B>(boolean bool)</PRE>
|
---|
618 | <DL>
|
---|
619 | <DD>Specify whether the parser should be validating. Default
|
---|
620 | is <code>true</code>.
|
---|
621 | <p>
|
---|
622 | If set to false, the validation will fail only if the parsed document
|
---|
623 | is not well formed XML.
|
---|
624 | <p>
|
---|
625 | this option is ignored if the specified class
|
---|
626 | with <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setClassName(java.lang.String)"><CODE>setClassName(String)</CODE></A> is not a SAX2 XMLReader.
|
---|
627 | <P>
|
---|
628 | <DD><DL>
|
---|
629 | <DT><B>Parameters:</B><DD><CODE>bool</CODE> - if set to <code>false</code> only fail on malformed XML</DL>
|
---|
630 | </DD>
|
---|
631 | </DL>
|
---|
632 | <HR>
|
---|
633 |
|
---|
634 | <A NAME="setClassName(java.lang.String)"><!-- --></A><H3>
|
---|
635 | setClassName</H3>
|
---|
636 | <PRE>
|
---|
637 | public void <B>setClassName</B>(java.lang.String className)</PRE>
|
---|
638 | <DL>
|
---|
639 | <DD>Specify the class name of the SAX parser to be used. (optional)
|
---|
640 | <P>
|
---|
641 | <DD><DL>
|
---|
642 | <DT><B>Parameters:</B><DD><CODE>className</CODE> - should be an implementation of SAX2
|
---|
643 | <code>org.xml.sax.XMLReader</code> or SAX2 <code>org.xml.sax.Parser</code>.
|
---|
644 | <p> if className is an implementation of
|
---|
645 | <code>org.xml.sax.Parser</code>, <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setLenient(boolean)"><CODE>setLenient(boolean)</CODE></A>,
|
---|
646 | will be ignored.
|
---|
647 | <p> if not set, the default will be used.<DT><B>See Also:</B><DD><CODE>XMLReader</CODE>,
|
---|
648 | <CODE>Parser</CODE></DL>
|
---|
649 | </DD>
|
---|
650 | </DL>
|
---|
651 | <HR>
|
---|
652 |
|
---|
653 | <A NAME="setClasspath(org.apache.tools.ant.types.Path)"><!-- --></A><H3>
|
---|
654 | setClasspath</H3>
|
---|
655 | <PRE>
|
---|
656 | public void <B>setClasspath</B>(<A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> classpath)</PRE>
|
---|
657 | <DL>
|
---|
658 | <DD>Specify the classpath to be searched to load the parser (optional)
|
---|
659 | <P>
|
---|
660 | <DD><DL>
|
---|
661 | <DT><B>Parameters:</B><DD><CODE>classpath</CODE> - the classpath to load the parser</DL>
|
---|
662 | </DD>
|
---|
663 | </DL>
|
---|
664 | <HR>
|
---|
665 |
|
---|
666 | <A NAME="createClasspath()"><!-- --></A><H3>
|
---|
667 | createClasspath</H3>
|
---|
668 | <PRE>
|
---|
669 | public <A HREF="../../../../../../org/apache/tools/ant/types/Path.html" title="class in org.apache.tools.ant.types">Path</A> <B>createClasspath</B>()</PRE>
|
---|
670 | <DL>
|
---|
671 | <DD><DL>
|
---|
672 |
|
---|
673 | <DT><B>Returns:</B><DD>the classpath created<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setClasspath(org.apache.tools.ant.types.Path)"><CODE>setClasspath(org.apache.tools.ant.types.Path)</CODE></A></DL>
|
---|
674 | </DD>
|
---|
675 | </DL>
|
---|
676 | <HR>
|
---|
677 |
|
---|
678 | <A NAME="setClasspathRef(org.apache.tools.ant.types.Reference)"><!-- --></A><H3>
|
---|
679 | setClasspathRef</H3>
|
---|
680 | <PRE>
|
---|
681 | public void <B>setClasspathRef</B>(<A HREF="../../../../../../org/apache/tools/ant/types/Reference.html" title="class in org.apache.tools.ant.types">Reference</A> r)</PRE>
|
---|
682 | <DL>
|
---|
683 | <DD>Where to find the parser class; optional.
|
---|
684 | <P>
|
---|
685 | <DD><DL>
|
---|
686 | <DT><B>Parameters:</B><DD><CODE>r</CODE> - reference to a classpath defined elsewhere<DT><B>See Also:</B><DD><A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.html#setClasspath(org.apache.tools.ant.types.Path)"><CODE>setClasspath(org.apache.tools.ant.types.Path)</CODE></A></DL>
|
---|
687 | </DD>
|
---|
688 | </DL>
|
---|
689 | <HR>
|
---|
690 |
|
---|
691 | <A NAME="setFile(java.io.File)"><!-- --></A><H3>
|
---|
692 | setFile</H3>
|
---|
693 | <PRE>
|
---|
694 | public void <B>setFile</B>(java.io.File file)</PRE>
|
---|
695 | <DL>
|
---|
696 | <DD>specify the file to be checked; optional.
|
---|
697 | <P>
|
---|
698 | <DD><DL>
|
---|
699 | <DT><B>Parameters:</B><DD><CODE>file</CODE> - the file to be checked</DL>
|
---|
700 | </DD>
|
---|
701 | </DL>
|
---|
702 | <HR>
|
---|
703 |
|
---|
704 | <A NAME="addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog)"><!-- --></A><H3>
|
---|
705 | addConfiguredXMLCatalog</H3>
|
---|
706 | <PRE>
|
---|
707 | public void <B>addConfiguredXMLCatalog</B>(<A HREF="../../../../../../org/apache/tools/ant/types/XMLCatalog.html" title="class in org.apache.tools.ant.types">XMLCatalog</A> catalog)</PRE>
|
---|
708 | <DL>
|
---|
709 | <DD>add an XMLCatalog as a nested element; optional.
|
---|
710 | <P>
|
---|
711 | <DD><DL>
|
---|
712 | <DT><B>Parameters:</B><DD><CODE>catalog</CODE> - XMLCatalog to use</DL>
|
---|
713 | </DD>
|
---|
714 | </DL>
|
---|
715 | <HR>
|
---|
716 |
|
---|
717 | <A NAME="addFileset(org.apache.tools.ant.types.FileSet)"><!-- --></A><H3>
|
---|
718 | addFileset</H3>
|
---|
719 | <PRE>
|
---|
720 | public void <B>addFileset</B>(<A HREF="../../../../../../org/apache/tools/ant/types/FileSet.html" title="class in org.apache.tools.ant.types">FileSet</A> set)</PRE>
|
---|
721 | <DL>
|
---|
722 | <DD>specify a set of file to be checked
|
---|
723 | <P>
|
---|
724 | <DD><DL>
|
---|
725 | <DT><B>Parameters:</B><DD><CODE>set</CODE> - the fileset to check</DL>
|
---|
726 | </DD>
|
---|
727 | </DL>
|
---|
728 | <HR>
|
---|
729 |
|
---|
730 | <A NAME="createAttribute()"><!-- --></A><H3>
|
---|
731 | createAttribute</H3>
|
---|
732 | <PRE>
|
---|
733 | public <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.Attribute.html" title="class in org.apache.tools.ant.taskdefs.optional">XMLValidateTask.Attribute</A> <B>createAttribute</B>()</PRE>
|
---|
734 | <DL>
|
---|
735 | <DD>Add an attribute nested element. This is used for setting arbitrary
|
---|
736 | features of the SAX parser.
|
---|
737 | Valid attributes
|
---|
738 | <a href="http://www.saxproject.org/apidoc/org/xml/sax/package-summary.html#package_description">include</a>
|
---|
739 | <P>
|
---|
740 | <DD><DL>
|
---|
741 |
|
---|
742 | <DT><B>Returns:</B><DD>attribute created<DT><B>Since:</B></DT>
|
---|
743 | <DD>ant1.6</DD>
|
---|
744 | </DL>
|
---|
745 | </DD>
|
---|
746 | </DL>
|
---|
747 | <HR>
|
---|
748 |
|
---|
749 | <A NAME="createProperty()"><!-- --></A><H3>
|
---|
750 | createProperty</H3>
|
---|
751 | <PRE>
|
---|
752 | public <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.Property.html" title="class in org.apache.tools.ant.taskdefs.optional">XMLValidateTask.Property</A> <B>createProperty</B>()</PRE>
|
---|
753 | <DL>
|
---|
754 | <DD>Creates a property.
|
---|
755 | <P>
|
---|
756 | <DD><DL>
|
---|
757 |
|
---|
758 | <DT><B>Returns:</B><DD>a property.<DT><B>Since:</B></DT>
|
---|
759 | <DD>ant 1.6.2</DD>
|
---|
760 | </DL>
|
---|
761 | </DD>
|
---|
762 | </DL>
|
---|
763 | <HR>
|
---|
764 |
|
---|
765 | <A NAME="init()"><!-- --></A><H3>
|
---|
766 | init</H3>
|
---|
767 | <PRE>
|
---|
768 | public void <B>init</B>()
|
---|
769 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
770 | <DL>
|
---|
771 | <DD>Called by the project to let the task initialize properly.
|
---|
772 | <P>
|
---|
773 | <DD><DL>
|
---|
774 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html#init()">init</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
|
---|
775 | </DD>
|
---|
776 | <DD><DL>
|
---|
777 |
|
---|
778 | <DT><B>Throws:</B>
|
---|
779 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if something goes wrong with the build</DL>
|
---|
780 | </DD>
|
---|
781 | </DL>
|
---|
782 | <HR>
|
---|
783 |
|
---|
784 | <A NAME="createDTD()"><!-- --></A><H3>
|
---|
785 | createDTD</H3>
|
---|
786 | <PRE>
|
---|
787 | public <A HREF="../../../../../../org/apache/tools/ant/types/DTDLocation.html" title="class in org.apache.tools.ant.types">DTDLocation</A> <B>createDTD</B>()</PRE>
|
---|
788 | <DL>
|
---|
789 | <DD>Create a DTD location record; optional.
|
---|
790 | This stores the location of a DTD. The DTD is identified
|
---|
791 | by its public Id.
|
---|
792 | <P>
|
---|
793 | <DD><DL>
|
---|
794 |
|
---|
795 | <DT><B>Returns:</B><DD>created DTD location</DL>
|
---|
796 | </DD>
|
---|
797 | </DL>
|
---|
798 | <HR>
|
---|
799 |
|
---|
800 | <A NAME="getEntityResolver()"><!-- --></A><H3>
|
---|
801 | getEntityResolver</H3>
|
---|
802 | <PRE>
|
---|
803 | protected org.xml.sax.EntityResolver <B>getEntityResolver</B>()</PRE>
|
---|
804 | <DL>
|
---|
805 | <DD>accessor to the xmlCatalog used in the task
|
---|
806 | <P>
|
---|
807 | <DD><DL>
|
---|
808 |
|
---|
809 | <DT><B>Returns:</B><DD>xmlCatalog reference</DL>
|
---|
810 | </DD>
|
---|
811 | </DL>
|
---|
812 | <HR>
|
---|
813 |
|
---|
814 | <A NAME="execute()"><!-- --></A><H3>
|
---|
815 | execute</H3>
|
---|
816 | <PRE>
|
---|
817 | public void <B>execute</B>()
|
---|
818 | throws <A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></PRE>
|
---|
819 | <DL>
|
---|
820 | <DD>execute the task
|
---|
821 | <P>
|
---|
822 | <DD><DL>
|
---|
823 | <DT><B>Overrides:</B><DD><CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html#execute()">execute</A></CODE> in class <CODE><A HREF="../../../../../../org/apache/tools/ant/Task.html" title="class in org.apache.tools.ant">Task</A></CODE></DL>
|
---|
824 | </DD>
|
---|
825 | <DD><DL>
|
---|
826 |
|
---|
827 | <DT><B>Throws:</B>
|
---|
828 | <DD><CODE><A HREF="../../../../../../org/apache/tools/ant/BuildException.html" title="class in org.apache.tools.ant">BuildException</A></CODE> - if <code>failonerror</code> is true and an error happens</DL>
|
---|
829 | </DD>
|
---|
830 | </DL>
|
---|
831 | <!-- ========= END OF CLASS DATA ========= -->
|
---|
832 | <HR>
|
---|
833 |
|
---|
834 |
|
---|
835 | <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
---|
836 | <A NAME="navbar_bottom"><!-- --></A>
|
---|
837 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
---|
838 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
---|
839 | <TR>
|
---|
840 | <TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
---|
841 | <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
---|
842 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
---|
843 | <TR ALIGN="center" VALIGN="top">
|
---|
844 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
---|
845 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
846 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
847 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
848 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
849 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
850 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
---|
851 | </TR>
|
---|
852 | </TABLE>
|
---|
853 | </TD>
|
---|
854 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
---|
855 | </EM>
|
---|
856 | </TD>
|
---|
857 | </TR>
|
---|
858 |
|
---|
859 | <TR>
|
---|
860 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
861 | <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XalanLiaison.html" title="class in org.apache.tools.ant.taskdefs.optional"><B>PREV CLASS</B></A>
|
---|
862 | <A HREF="../../../../../../org/apache/tools/ant/taskdefs/optional/XMLValidateTask.Attribute.html" title="class in org.apache.tools.ant.taskdefs.optional"><B>NEXT CLASS</B></A></FONT></TD>
|
---|
863 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
---|
864 | <A HREF="../../../../../../index.html" target="_top"><B>FRAMES</B></A>
|
---|
865 | <A HREF="XMLValidateTask.html" target="_top"><B>NO FRAMES</B></A>
|
---|
866 | <SCRIPT type="text/javascript">
|
---|
867 | <!--
|
---|
868 | if(window==top) {
|
---|
869 | document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
---|
870 | }
|
---|
871 | //-->
|
---|
872 | </SCRIPT>
|
---|
873 | <NOSCRIPT>
|
---|
874 | <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
---|
875 | </NOSCRIPT>
|
---|
876 |
|
---|
877 | </FONT></TD>
|
---|
878 | </TR>
|
---|
879 | <TR>
|
---|
880 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
881 | SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
882 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
883 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
---|
884 | </TR>
|
---|
885 | </TABLE>
|
---|
886 | <A NAME="skip-navbar_bottom"></A>
|
---|
887 | <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
---|
888 |
|
---|
889 | <HR>
|
---|
890 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
891 | </BODY>
|
---|
892 | </HTML>
|
---|