|
||||||||||
| 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.xml.ParseTagSupport
org.apache.commons.jelly.tags.xml.ParseTag
A tag which parses some XML and defines a variable with the parsed Document. The XML can either be specified as its body or can be passed in via the xml property which can be a Reader, InputStream, URL or String URI.
| Field Summary | |
private static org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
private boolean |
validate
whether XML validation is enabled or disabled |
private java.lang.Object |
xml
The xml to parse, either a String URI, a Reader or InputStream |
| Fields inherited from class org.apache.commons.jelly.tags.xml.ParseTagSupport |
|
| Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
ParseTag()
|
|
| Method Summary | |
protected org.dom4j.io.SAXReader |
createSAXReader()
Factory method to create a new SAXReader |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
boolean |
getValidate()
|
java.lang.Object |
getXml()
Gets the source of the XML which is either a String URI, Reader or InputStream |
protected org.dom4j.Document |
getXmlDocument(org.apache.commons.jelly.XMLOutput output)
|
void |
setValidate(boolean validate)
Sets whether XML validation is enabled or disabled |
void |
setXml(java.lang.Object xml)
Sets the source of the XML which is either a String URI, a File, Reader or InputStream |
| Methods inherited from class org.apache.commons.jelly.tags.xml.ParseTagSupport |
getSAXReader, getText, getVar, parse, parseBody, parseText, setSAXReader, setText, setVar |
| 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 static final org.apache.commons.logging.Log log
private java.lang.Object xml
private boolean validate
| Constructor Detail |
public ParseTag()
| Method Detail |
public void doTag(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.MissingAttributeException,
org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.MissingAttributeException
org.apache.commons.jelly.JellyTagExceptionpublic java.lang.Object getXml()
public void setXml(java.lang.Object xml)
public boolean getValidate()
public void setValidate(boolean validate)
protected org.dom4j.io.SAXReader createSAXReader()
createSAXReader in class ParseTagSupport
protected org.dom4j.Document getXmlDocument(org.apache.commons.jelly.XMLOutput output)
throws org.apache.commons.jelly.JellyTagException
org.apache.commons.jelly.JellyTagException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||