org.apache.taglibs.xtags.xpath
Class AbstractTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.xtags.xpath.AbstractTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, 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
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 |
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 |
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
AbstractTag
public AbstractTag()
release
public void release()
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.