com.thaiopensource.relaxng.util
Class JingTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.thaiopensource.relaxng.util.JingTask
All Implemented Interfaces:
Cloneable

public class JingTask
extends org.apache.tools.ant.Task

Ant task to validate XML files using RELAX NG or other schema languages.


Nested Class Summary
private  class JingTask.LogErrorHandler
           
 
Field Summary
private  boolean failOnError
           
private  Vector filesets
           
private  PropertyMapBuilder properties
           
private  File schemaFile
           
private  SchemaReader schemaReader
           
private  File src
           
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
JingTask()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
           
 void execute()
           
 void setCheckid(boolean checkid)
          Handles the checkid attribute.
 void setCompactsyntax(boolean compactsyntax)
          Handles the compactsyntax attribute.
 void setFailonerror(boolean failOnError)
          Handles the failonerror attribute.
 void setFeasible(boolean feasible)
          Handles the feasible attribute.
 void setFile(File file)
           
 void setPhase(String phase)
          Handles the phase attribute.
 void setRngfile(String rngFilename)
          Handles the rngfile attribute.
 void setSchemafile(String schemaFilename)
          Handles the schemafile attribute.
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schemaFile

private File schemaFile

src

private File src

filesets

private final Vector filesets

properties

private PropertyMapBuilder properties

failOnError

private boolean failOnError

schemaReader

private SchemaReader schemaReader
Constructor Detail

JingTask

public JingTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

setRngfile

public void setRngfile(String rngFilename)
Handles the rngfile attribute.

Parameters:
rngFilename - the attribute value

setSchemafile

public void setSchemafile(String schemaFilename)
Handles the schemafile attribute.

Parameters:
schemaFilename - the attribute value

setFile

public void setFile(File file)

setCheckid

public void setCheckid(boolean checkid)
Handles the checkid attribute.

Parameters:
checkid - the attribute value converted to a boolean

setCompactsyntax

public void setCompactsyntax(boolean compactsyntax)
Handles the compactsyntax attribute.

Parameters:
compactsyntax - the attribute value converted to a boolean

setFeasible

public void setFeasible(boolean feasible)
Handles the feasible attribute.

Parameters:
feasible - the attribute value converted to a boolean

setPhase

public void setPhase(String phase)
Handles the phase attribute.

Parameters:
phase - the attribute value

setFailonerror

public void setFailonerror(boolean failOnError)
Handles the failonerror attribute.

Parameters:
failOnError - the attribute value converted to a boolean

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)