|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
TagTransformer
Field Summary | |
static int |
EVAL_BODY
Evaluate body content Valid return value for doStartTag. |
static int |
EVAL_PAGE
Continue evaluating the page. |
static String |
ROLE
|
static int |
SKIP_BODY
Skip body evaluation. |
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. |
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. |
Field Detail |
public static final String ROLE
public static final int EVAL_BODY
public static final int SKIP_BODY
public static final int EVAL_PAGE
Method Detail |
public int doEndTag(String namespaceURI, String localName, String qName) throws SAXException
SAXException
public int doStartTag(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
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.
SAXException
public Tag getParent()
public void setup(SourceResolver resolver, Map objectModel, Parameters parameters) throws SAXException, IOException
SourceResolver
, objectModel Map
and sitemap Parameters
used to process the request.
SAXException
IOException
public void setParent(Tag parent)
parent
- The parent tag or null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |