| org.apache.cocoon.taglib.TagSupport
All known Subclasses: org.apache.cocoon.taglib.VarTagSupport, org.apache.cocoon.faces.taglib.ValidatorTag, org.apache.cocoon.faces.taglib.ActionListenerTag, org.apache.cocoon.faces.taglib.LoadBundleTag, org.apache.cocoon.taglib.TransformerTagSupport, org.apache.cocoon.faces.taglib.FacetTag, org.apache.cocoon.faces.taglib.ConverterTag, org.apache.cocoon.taglib.XMLProducerTagSupport, org.apache.cocoon.taglib.test.IterationTestTag, org.apache.cocoon.taglib.i18n.LocaleTag, org.apache.cocoon.faces.taglib.ValueChangeListenerTag, org.apache.cocoon.faces.taglib.AttributeTag,
TagSupport | abstract public class TagSupport extends AbstractLogEnabled implements Tag,Recyclable(Code) | | Abstract implementation for all Tags
author: Volker Schmitt version: CVS $Id: TagSupport.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
public int | doEndTag(String namespaceURI, String localName, String qName) Process the end tag for this instance. | public int | doStartTag(String namespaceURI, String localName, String qName, Attributes atts) Process the start tag for this instance.
The doStartTag method assumes that pageContext and
parent have been set. | final public static Tag | findAncestorWithClass(Tag from, Class klass) Find the instance of a given class type that is closest to a given
instance. | final public Object | findAttribute(String name) Searches for the named attribute in request, session (if valid),
and application scope(s) in order and returns the value associated or
null. | final public Tag | getParent() Get the parent (closest enclosing tag handler) for this tag handler. | public void | recycle() | final public void | setParent(Tag parent) Set the parent (closest enclosing tag handler) of this tag handler. | public void | setup(SourceResolver resolver, Map objectModel, Parameters parameters) Set the SourceResolver , objectModel Map
and sitemap Parameters used to process the request. |
parameters | protected Parameters parameters(Code) | | |
doStartTag | public int doStartTag(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException(Code) | | Process the start tag for this instance.
The doStartTag method assumes that pageContext and
parent have been set. It also assumes that any properties exposed as
attributes have been set too. When this method is invoked, the body
has not yet been evaluated.
EVAL_BODY or SKIP_BODY. |
findAncestorWithClass | final public static Tag findAncestorWithClass(Tag from, Class klass)(Code) | | Find the instance of a given class type that is closest to a given
instance.
This method uses the getParent method from the Tag
interface.
This method is used for coordination among cooperating tags.
Parameters: from - The instance from where to start looking. Parameters: klass - The subclass of Tag or interface to be matched the nearest ancestor that implements the interfaceor is an instance of the class specified |
findAttribute | final public Object findAttribute(String name)(Code) | | Searches for the named attribute in request, session (if valid),
and application scope(s) in order and returns the value associated or
null.
the value associated or null |
getParent | final public Tag getParent()(Code) | | Get the parent (closest enclosing tag handler) for this tag handler.
the current parent, or null if none. |
recycle | public void recycle()(Code) | | |
setParent | final public void setParent(Tag parent)(Code) | | Set the parent (closest enclosing tag handler) of this tag handler.
Invoked by the TagTransformer prior to doStartTag().
This value is *not* reset by doEndTag() and must be explicitly reset
by a Tag implementation.
Parameters: parent - the parent tag, or null. |
|
|