|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 | |
private java.lang.StringBuffer |
buffer
|
| Fields inherited from class org.apache.commons.jelly.tags.validate.ValidateTag |
|
| 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 |
| Field Detail |
private java.lang.StringBuffer buffer
| 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.TagdoTag in class ValidateTagorg.apache.commons.jelly.JellyTagExceptionprotected 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 ValidateTagorg.xml.sax.SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||