| org.apache.cocoon.taglib.Tag
All known Subclasses: org.apache.cocoon.taglib.TagSupport,
Tag | public interface Tag extends Component(Code) | | The Tag implementation works like a JSP Tag but generate SAX output
instead of writing to a OutputStream. The equivalent to the JSPEngine
is implemented as a Transformer.
See Also: org.apache.cocoon.transformation.TagTransformer author: Volker Schmitt version: CVS $Id: Tag.java 433543 2006-08-22 06:22:54Z crossley $ |
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.
The doStartTag method assumes that parent have been set.
It also assumes that any properties exposed as
attributes have been set too. | Tag | getParent() Get the parent (closest enclosing tag handler) for this tag handler. | 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. |
EVAL_BODY | int EVAL_BODY(Code) | | Evaluate body content
Valid return value for doStartTag.
|
EVAL_PAGE | int EVAL_PAGE(Code) | | Continue evaluating the page.
Valid return value for doEndTag.
|
SKIP_BODY | int SKIP_BODY(Code) | | Skip body evaluation.
Valid return value for doStartTag.
|
doStartTag | 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 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. |
getParent | Tag getParent()(Code) | | Get the parent (closest enclosing tag handler) for this tag handler.
the current parent or null if none. |
setParent | void setParent(Tag parent)(Code) | | Set the parent (closest enclosing tag handler) of this tag handler.
Invoked by the implementation object prior to doStartTag().
Parameters: parent - The parent tag or null. |
|
|