|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport org.apache.commons.jelly.tags.validate.ValidateTag org.apache.commons.jelly.tags.validate.AssertValidTag
This tag performs an assertion that the tags body contains XML which matches a givem schema validation. This tag is used with JellyUnit to implement an assertion.
Field Summary |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
AssertValidTag()
|
Method Summary | |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
protected void |
handleValid(boolean valid)
Processes whether or not the document is valid. |
protected void |
outputException(org.apache.commons.jelly.XMLOutput output,
java.lang.String name,
org.xml.sax.SAXParseException e)
Outputs the given validation exception as XML to the output |
Methods inherited from class org.apache.commons.jelly.tags.validate.ValidateTag |
getErrorHandler, setErrorHandler, setVar, setVerifier |
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 |
public AssertValidTag()
Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.JellyTagException
doTag
in interface org.apache.commons.jelly.Tag
doTag
in class ValidateTag
org.apache.commons.jelly.JellyTagException
protected void handleValid(boolean valid)
handleValid
in class ValidateTag
protected void outputException(org.apache.commons.jelly.XMLOutput output, java.lang.String name, org.xml.sax.SAXParseException e) throws org.xml.sax.SAXException
outputException
in class ValidateTag
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |