org.apache.taglibs.xtags.xpath
Class StylesheetTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.taglibs.xtags.xpath.AbstractBodyTag
              extended byorg.apache.taglibs.xtags.xpath.StylesheetTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, 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
 
Constructor Summary
StylesheetTag()
           
 
Method Summary
 void addTemplate(org.dom4j.rule.Rule rule)
           
protected  org.dom4j.XPath createXPath(java.lang.String xpathExpression)
          A factory method to create new XPath instances
 int doAfterBody()
           
 int doEndTag()
           
 int doStartTag()
           
protected  org.dom4j.DocumentFactory getDocumentFactory()
           
 java.lang.Object getInputNodes()
           
 java.lang.String getMode()
          Getter for property mode.
 org.dom4j.rule.Stylesheet getStylesheet()
           
 void release()
           
 void runStylesheet()
           
 void setContext(java.lang.Object context)
           
 void setMode(java.lang.String mode)
          Setter for property mode.
 void setPageContext(javax.servlet.jsp.PageContext pageContext)
           
 
Methods inherited from class org.apache.taglibs.xtags.xpath.AbstractBodyTag
handleException, logError, logError, logInfo
 
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
 

Field Detail

context

protected java.lang.Object context
Constructor Detail

StylesheetTag

public StylesheetTag()
Method Detail

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)

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

runStylesheet

public void runStylesheet()
                   throws java.lang.Exception
Throws:
java.lang.Exception

release

public void release()

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.