org.apache.anteater.test.matchers
Class Jing

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--org.apache.anteater.test.BaseTask
                    |
                    +--org.apache.anteater.test.ContentHandlerTask
                          |
                          +--org.apache.anteater.test.MatcherTest
                                |
                                +--org.apache.anteater.test.matchers.Jing
All Implemented Interfaces:
Groupable, ObjectModel, org.apache.tools.ant.TaskContainer

public class Jing
extends MatcherTest

Matcher based on James Clark's Jing tool for validating XML documents against the Relax NG schema language.

Since:
7 July, 2002
Author:
Jeff Turner

Field Summary
 
Fields inherited from class org.apache.anteater.test.MatcherTest
logger, matcher, objectModel, property
 
Fields inherited from class org.apache.anteater.test.ContentHandlerTask
handlerFactory, matcherTests
 
Fields inherited from class org.apache.anteater.test.BaseTask
debug, debugWasSet
 
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
 
Fields inherited from interface org.apache.anteater.test.ObjectModel
NAMESPACES_KEY, PROPERTIES_KEY
 
Constructor Summary
Jing()
           
 
Method Summary
 void setCheckid(boolean checkid)
          Handles the checkid attribute.
 void setCompactsyntax(boolean compactsyntax)
          Handles the compactsyntax attribute.
 void setRngfile(String rngFilename)
          Handles the rngfile attribute.
 boolean validate()
          Return true if this instance matches against the matchOn object of the matcher.
 
Methods inherited from class org.apache.anteater.test.MatcherTest
addText, getMatchOn, getResult, getText, setAssign, setLogger, setMatcher, setObjectModel, setPropertyValue
 
Methods inherited from class org.apache.anteater.test.ContentHandlerTask
addTask, execute
 
Methods inherited from class org.apache.anteater.test.BaseTask
debug, getDebug, getGroup, print, println, resolveContentURL, setDebug, setGroup, setGroup
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, 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

Jing

public Jing()
Method Detail

validate

public boolean validate()
                 throws org.apache.tools.ant.BuildException
Description copied from class: MatcherTest
Return true if this instance matches against the matchOn object of the matcher.

Specified by:
validate in class MatcherTest
Returns:
a boolean value
org.apache.tools.ant.BuildException

setRngfile

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

Parameters:
rngFilename - the attribute value

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


Ant Functional Tester -- see Project home page for details