public abstract class ParseTagSupport extends TagSupport
body, context, parent| Constructor and Description |
|---|
ParseTagSupport() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract org.dom4j.io.SAXReader |
createSAXReader()
Factory method to create a new SAXReader
|
org.dom4j.io.SAXReader |
getSAXReader() |
String |
getText()
Returns the text to be parsed
|
String |
getVar()
The variable name that will be used for the Document variable created
|
protected org.dom4j.Document |
parse(Object source)
Parses the given source
|
protected org.dom4j.Document |
parseBody(XMLOutput output)
Parses the body of this tag and returns the parsed document
|
protected org.dom4j.Document |
parseText(String text)
Parses the give piece of text as being markup
|
void |
setSAXReader(org.dom4j.io.SAXReader saxReader)
Sets the SAXReader used for parsing
|
void |
setText(String text)
Sets the text to be parsed by this parser
|
void |
setVar(String var)
Sets the variable name that will be used for the Document variable created
|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBodypublic String getVar()
public void setVar(String var)
public String getText()
public void setText(String text)
text - The text to be parsed by this parserpublic org.dom4j.io.SAXReader getSAXReader()
throws SAXException
SAXExceptionpublic void setSAXReader(org.dom4j.io.SAXReader saxReader)
protected abstract org.dom4j.io.SAXReader createSAXReader()
throws SAXException
SAXExceptionprotected org.dom4j.Document parseBody(XMLOutput output) throws JellyTagException
JellyTagExceptionprotected org.dom4j.Document parseText(String text) throws JellyTagException
JellyTagExceptionprotected org.dom4j.Document parse(Object source) throws JellyTagException
JellyTagExceptionCopyright © 2014. All rights reserved.