org.apache.commons.jelly.tags.validate
Class VerifierTag

java.lang.Object
  extended byorg.apache.commons.jelly.TagSupport
      extended byorg.apache.commons.jelly.tags.validate.VerifierTag
All Implemented Interfaces:
org.apache.commons.jelly.Tag

public class VerifierTag
extends org.apache.commons.jelly.TagSupport

This tag creates a new Verifier of a schema as a variable so that it can be used by a <validate> tag.

Version:
$Revision: 1.7 $
Author:
James Strachan

Field Summary
private  org.iso_relax.verifier.VerifierFactory factory
          The factory used to create new schema verifier objects
private  java.io.File file
          The file to load the schema from
private  java.lang.String systemId
          The system ID to use when parsing the schema
private  java.lang.String uri
          The URI to load the schema from
private  java.lang.String var
          the variable name to export the Verifier as
 
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
 
Constructor Summary
VerifierTag()
           
 
Method Summary
 void doTag(org.apache.commons.jelly.XMLOutput output)
           
 org.iso_relax.verifier.VerifierFactory getFactory()
           
 void setFactory(org.iso_relax.verifier.VerifierFactory factory)
          Sets the factory used to create new schema verifier objects.
 void setFile(java.io.File aFile)
          Sets the File of the schema to parse.
 void setSystemId(java.lang.String systemId)
          Sets the system ID used when parsing the schema
 void setUri(java.lang.String uri)
          Sets the URI of the schema file to parse.
 void setVar(java.lang.String var)
          Sets the name of the variable that will be set to the new Verifier
 
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

var

private java.lang.String var
the variable name to export the Verifier as


uri

private java.lang.String uri
The URI to load the schema from


file

private java.io.File file
The file to load the schema from


systemId

private java.lang.String systemId
The system ID to use when parsing the schema


factory

private org.iso_relax.verifier.VerifierFactory factory
The factory used to create new schema verifier objects

Constructor Detail

VerifierTag

public VerifierTag()
Method Detail

doTag

public void doTag(org.apache.commons.jelly.XMLOutput output)
           throws org.apache.commons.jelly.MissingAttributeException,
                  org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagException

setVar

public void setVar(java.lang.String var)
Sets the name of the variable that will be set to the new Verifier


setUri

public void setUri(java.lang.String uri)
Sets the URI of the schema file to parse. If no URI and no file is specified then the body of this tag is used as the source of the schema


setFile

public void setFile(java.io.File aFile)
Sets the File of the schema to parse. If no URI and no file is specified then the body of this tag is used as the source of the schema


setSystemId

public void setSystemId(java.lang.String systemId)
Sets the system ID used when parsing the schema


setFactory

public void setFactory(org.iso_relax.verifier.VerifierFactory factory)
Sets the factory used to create new schema verifier objects. If none is provided then the default MSV factory is used.


getFactory

public org.iso_relax.verifier.VerifierFactory getFactory()
                                                  throws org.apache.commons.jelly.JellyTagException
Throws:
org.apache.commons.jelly.JellyTagException