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: 155420 $
Author:
James Strachan

Field Summary
 
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, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright © 2002-2006 Apache Software Foundation. All Rights Reserved.