org.apache.maven.sitevalidator
Class Validator

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.maven.sitevalidator.Validator

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

Validator task. This task is a modified version of the standard ant validator task, specialized for checking xhtml files and logging errors (without beaking the build)

Version:
$Revision: 1.4 $ ($Author: fgiust $)
Author:
fgiust

Field Summary
 
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
Validator()
           
 
Method Summary
 void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog catalog)
          add an XMLCatalog as a nested element.
 void addFileset(org.apache.tools.ant.types.FileSet set)
          specify a set of file to be checked
 org.apache.tools.ant.types.DTDLocation createDTD()
          Create a DTD location record.
 void execute()
          execute the task
 void init()
          initialize task
 void setEncoding(java.lang.String value)
          sets the input/output files encoding
 void setOUtput(java.io.File file)
          sets the output file
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorFlush, handleErrorOutput, handleFlush, handleOutput, isInvalid, 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

Validator

public Validator()
Method Detail

setEncoding

public void setEncoding(java.lang.String value)
sets the input/output files encoding

Parameters:
value - encoding

setOUtput

public void setOUtput(java.io.File file)
sets the output file

Parameters:
file - output file

addConfiguredXMLCatalog

public void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog catalog)
add an XMLCatalog as a nested element.

Parameters:
catalog - XMLCatalog

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)
specify a set of file to be checked

Parameters:
set - Fileset

init

public void init()
initialize task


createDTD

public org.apache.tools.ant.types.DTDLocation createDTD()
Create a DTD location record. This stores the location of a DTD. The DTD is identified by its public Id

Returns:
DTDLocation

execute

public void execute()
             throws org.apache.tools.ant.BuildException
execute the task

Throws:
org.apache.tools.ant.BuildException - if unable to build a validating SAX2 parser


Copyright © 2003-2004 sourceforge. All Rights Reserved.