|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.taglib.TagSupport
public abstract class TagSupport
Abstract implementation for all Tags
Field Summary | |
---|---|
protected Map |
objectModel
|
protected Parameters |
parameters
|
protected Tag |
parent
|
protected SourceResolver |
resolver
|
Fields inherited from interface org.apache.cocoon.taglib.Tag |
---|
EVAL_BODY, EVAL_PAGE, ROLE, SKIP_BODY |
Constructor Summary | |
---|---|
TagSupport()
|
Method Summary | |
---|---|
int |
doEndTag(String namespaceURI,
String localName,
String qName)
Process the end tag for this instance. |
int |
doStartTag(String namespaceURI,
String localName,
String qName,
Attributes atts)
Process the start tag for this instance. |
static Tag |
findAncestorWithClass(Tag from,
Class klass)
Find the instance of a given class type that is closest to a given instance. |
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. |
Tag |
getParent()
Get the parent (closest enclosing tag handler) for this tag handler. |
void |
recycle()
|
void |
setParent(Tag parent)
Set the parent (closest enclosing tag handler) of this tag handler. |
void |
setup(SourceResolver resolver,
Map objectModel,
Parameters parameters)
Set the SourceResolver , objectModel Map
and sitemap Parameters used to process the request. |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Tag parent
protected SourceResolver resolver
protected Map objectModel
protected Parameters parameters
Constructor Detail |
---|
public TagSupport()
Method Detail |
---|
public static final Tag findAncestorWithClass(Tag from, Class klass)
from
- The instance from where to start looking.klass
- The subclass of Tag or interface to be matched
public int doEndTag(String namespaceURI, String localName, String qName) throws SAXException
doEndTag
in interface Tag
SAXException
public int doStartTag(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
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.
doStartTag
in interface Tag
SAXException
public final Object findAttribute(String name)
public final Tag getParent()
getParent
in interface Tag
public void recycle()
recycle
in interface Recyclable
public final void setParent(Tag parent)
This value is *not* reset by doEndTag() and must be explicitly reset by a Tag implementation.
setParent
in interface Tag
parent
- the parent tag, or null.public void setup(SourceResolver resolver, Map objectModel, Parameters parameters) throws SAXException, IOException
SourceResolver
, objectModel Map
and sitemap Parameters
used to process the request.
setup
in interface Tag
SAXException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |