org.apache.taglibs.xtags.xpath
Class StylesheetTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.xtags.xpath.AbstractBodyTag
org.apache.taglibs.xtags.xpath.StylesheetTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class StylesheetTag
- extends AbstractBodyTag
The body of this tag defines a stylesheet which is implemented via calling
a JSP include.
- Author:
- James Strachan
- See Also:
- Serialized Form
Field Summary |
protected java.lang.Object |
context
|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setParent |
context
protected java.lang.Object context
StylesheetTag
public StylesheetTag()
getStylesheet
public org.dom4j.rule.Stylesheet getStylesheet()
addTemplate
public void addTemplate(org.dom4j.rule.Rule rule)
setPageContext
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
- Specified by:
setPageContext
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
setPageContext
in class javax.servlet.jsp.tagext.TagSupport
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Specified by:
doStartTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspException
- Specified by:
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
- Overrides:
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspException
runStylesheet
public void runStylesheet()
throws java.lang.Exception
- Throws:
java.lang.Exception
release
public void release()
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class javax.servlet.jsp.tagext.BodyTagSupport
getMode
public java.lang.String getMode()
- Getter for property mode.
- Returns:
- Value of property mode.
setMode
public void setMode(java.lang.String mode)
- Setter for property mode.
- Parameters:
mode
- New value of property mode.
getInputNodes
public java.lang.Object getInputNodes()
- Returns:
- the input node on which to make a selction
createXPath
protected org.dom4j.XPath createXPath(java.lang.String xpathExpression)
- A factory method to create new XPath instances
getDocumentFactory
protected org.dom4j.DocumentFactory getDocumentFactory()
- Returns:
- the factory used to create XPath instances
setContext
public void setContext(java.lang.Object context)
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.