|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--net.cafebabe.sat.util.FileTask | +--net.cafebabe.sat.xml.ValidTask
Valid is an XML validator (can check well formness and validity).
Field Summary |
Fields inherited from class net.cafebabe.sat.util.FileTask |
|
Fields inherited from class org.apache.tools.ant.Task |
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
project |
Constructor Summary | |
ValidTask()
|
Method Summary | |
void |
execute()
Executes the task. |
void |
setDtd(boolean dtd)
Setter for the DTD loading. |
void |
setErrorlevel(java.lang.String errorlevel)
Error level setter (possible values are 'warning', 'error' or 'fatal'). |
void |
setFailonerror(boolean failonerror)
Setter for the failonerror flag.If true, the Ant compilation stops with an error message if the document being validated is not valid. |
void |
setMaxerrors(java.lang.String maxerrors)
Maximum errors setter. |
void |
setTimeFile(java.lang.String file)
Set file for date reference. |
Methods inherited from class net.cafebabe.sat.util.FileTask |
addFileset, getFiles, getNewFiles, newerFilesThan, setDir, setFile |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ValidTask()
Method Detail |
public void setDtd(boolean dtd)
dtd
- a boolean
valuepublic void setFailonerror(boolean failonerror)
failonerror
- Flag for failonerror flag.public void setErrorlevel(java.lang.String errorlevel)
errorlevel
- The error level.public void setMaxerrors(java.lang.String maxerrors)
maxerrors
- The maximum number of errors to display for
a given file.public void setTimeFile(java.lang.String file)
file
- The reference file as a Stringpublic void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |