|
||||||||||
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.xpath.XPathTagSupport
org.apache.commons.jelly.tags.jsl.StylesheetTag
This tag implements a JSL stylesheet which is similar to an XSLT stylesheet but can use Jelly tags inside it
Field Summary | |
private org.apache.commons.logging.Log |
log
The Log to which logging calls will be made. |
private java.lang.String |
mode
Holds value of property mode. |
private org.jaxen.XPath |
select
The XPath expression to evaluate. |
private org.dom4j.rule.Stylesheet |
stylesheet
Holds the stylesheet which will be applied to the source context. |
private java.lang.String |
var
The variable which the stylesheet will be output as |
private java.lang.Object |
xpathSource
The XPath source used by TemplateTag and ApplyTemplatesTag to pass XPath contexts |
Fields inherited from class org.apache.commons.jelly.TagSupport |
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
StylesheetTag()
|
Method Summary | |
void |
addTemplate(org.dom4j.rule.Rule rule)
Adds a new template rule to this stylesheet |
protected org.dom4j.rule.Stylesheet |
createStylesheet(org.apache.commons.jelly.XMLOutput output)
Factory method to create a new stylesheet |
void |
doTag(org.apache.commons.jelly.XMLOutput output)
|
java.lang.String |
getMode()
Getter for property mode. |
protected java.lang.Object |
getSource()
|
org.dom4j.rule.Stylesheet |
getStylesheet()
|
org.apache.commons.jelly.XMLOutput |
getStylesheetOutput()
|
java.lang.Object |
getXPathSource()
|
void |
setMode(java.lang.String mode)
Sets the mode. |
void |
setSelect(org.jaxen.XPath select)
Sets the XPath expression to evaluate. |
void |
setStylesheetOutput(org.apache.commons.jelly.XMLOutput output)
Sets the XMLOutput to use by the current stylesheet |
void |
setVar(java.lang.String var)
Sets the variable name to define for this expression |
(package private) void |
setXPathSource(java.lang.Object xpathSource)
Sets the xpathSource. |
Methods inherited from class org.apache.commons.jelly.xpath.XPathTagSupport |
getXPathContext |
Methods inherited from class org.apache.commons.jelly.TagSupport |
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private org.apache.commons.logging.Log log
private org.dom4j.rule.Stylesheet stylesheet
private java.lang.String mode
private java.lang.String var
private org.jaxen.XPath select
private java.lang.Object xpathSource
Constructor Detail |
public StylesheetTag()
Method Detail |
public org.apache.commons.jelly.XMLOutput getStylesheetOutput()
public void setStylesheetOutput(org.apache.commons.jelly.XMLOutput output)
public void addTemplate(org.dom4j.rule.Rule rule)
public java.lang.Object getXPathSource()
getXPathSource
in interface org.apache.commons.jelly.xpath.XPathSource
public void doTag(org.apache.commons.jelly.XMLOutput output) throws org.apache.commons.jelly.JellyTagException
doTag
in interface org.apache.commons.jelly.Tag
org.apache.commons.jelly.JellyTagException
public java.lang.String getMode()
public void setMode(java.lang.String mode)
mode
- New value of property mode.public org.dom4j.rule.Stylesheet getStylesheet()
public void setVar(java.lang.String var)
public void setSelect(org.jaxen.XPath select)
protected java.lang.Object getSource() throws org.jaxen.JaxenException
org.jaxen.JaxenException
protected org.dom4j.rule.Stylesheet createStylesheet(org.apache.commons.jelly.XMLOutput output)
void setXPathSource(java.lang.Object xpathSource)
xpathSource
- The xpathSource to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |