org.apache.taglibs.xtags.xpath
Class AbstractTag

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by org.apache.taglibs.xtags.xpath.AbstractTag
All Implemented Interfaces:
java.io.Serializable, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
Direct Known Subclasses:
ApplyTemplatesTag, CopyOfTag, CopyTag, IfTag, RemoveTag, ValueOfTag, VariableTag, WhenTag

public abstract class AbstractTag
extends javax.servlet.jsp.tagext.TagSupport

A tag which performs an XPath expression on the current context Node

Author:
James Strachan
See Also:
Serialized Form

Field Summary
protected static boolean ALLOW_FLUSH
           
protected  java.lang.Object context
           
protected static org.dom4j.Document EMPTY_DOCUMENT
           
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
AbstractTag()
           
 
Method Summary
protected  org.dom4j.XPath createXPath(java.lang.String xpathExpression)
          A factory method to create new XPath instances
protected  org.dom4j.NodeFilter createXPathFilter(java.lang.String xpathExpression)
          A factory method to create new XPath filter
 void flush()
           
protected  org.dom4j.DocumentFactory getDocumentFactory()
           
 java.lang.Object getInputNodes()
           
 java.lang.Object getInputNodes(boolean warn)
           
 org.dom4j.rule.Stylesheet getStylesheet()
           
protected  void handleException(java.lang.Exception e)
          Handles non-JspExceptions thrown in this instance
 boolean matches(org.dom4j.NodeFilter filter)
           
 void release()
           
 void setContext(java.lang.Object context)
           
 void setInputNodes(java.lang.Object inputNodes)
           
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_DOCUMENT

protected static final org.dom4j.Document EMPTY_DOCUMENT

ALLOW_FLUSH

protected static final boolean ALLOW_FLUSH
See Also:
Constant Field Values

context

protected java.lang.Object context
Constructor Detail

AbstractTag

public AbstractTag()
Method Detail

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport

flush

public void flush()
           throws javax.servlet.jsp.JspException
Throws:
javax.servlet.jsp.JspException

setContext

public void setContext(java.lang.Object context)

matches

public boolean matches(org.dom4j.NodeFilter filter)
Returns:
true if the given filter matches a node in the input nodes

getInputNodes

public java.lang.Object getInputNodes()
Returns:
the input node on which to make a selction

getInputNodes

public java.lang.Object getInputNodes(boolean warn)

setInputNodes

public void setInputNodes(java.lang.Object inputNodes)

getStylesheet

public org.dom4j.rule.Stylesheet getStylesheet()

createXPath

protected org.dom4j.XPath createXPath(java.lang.String xpathExpression)
A factory method to create new XPath instances


createXPathFilter

protected org.dom4j.NodeFilter createXPathFilter(java.lang.String xpathExpression)
A factory method to create new XPath filter


getDocumentFactory

protected org.dom4j.DocumentFactory getDocumentFactory()
Returns:
the factory used to create XPath instances

handleException

protected void handleException(java.lang.Exception e)
                        throws javax.servlet.jsp.JspException
Handles non-JspExceptions thrown in this instance

Throws:
javax.servlet.jsp.JspException


Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.