public class TrinidadTagSupport extends Object implements javax.servlet.jsp.tagext.IterationTag
TagSupport
class.
The main difference is that this class is NOT implementing the
Serializable
interface.Modifier and Type | Field and Description |
---|---|
protected String |
id
The value of the id attribute of this tag; or null.
|
protected javax.servlet.jsp.PageContext |
pageContext
The PageContext.
|
Constructor and Description |
---|
TrinidadTagSupport()
Default constructor, all subclasses are required to define only a public
constructor with the same signature, and to call the superclass
constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
doAfterBody()
Default processing for a body.
|
int |
doEndTag()
Default processing of the end tag returning EVAL_PAGE.
|
int |
doStartTag()
Default processing of the start tag, returning SKIP_BODY.
|
static javax.servlet.jsp.tagext.Tag |
findAncestorWithClass(javax.servlet.jsp.tagext.Tag from,
Class klass)
Find the instance of a given class type that is closest to a given
instance.
|
String |
getId()
The value of the id attribute of this tag; or null.
|
javax.servlet.jsp.tagext.Tag |
getParent()
The Tag instance most closely enclosing this tag instance.
|
Object |
getValue(String k)
Get a the value associated with a key.
|
Enumeration<String> |
getValues()
Enumerate the keys for the values kept by this tag handler.
|
void |
release()
Release state.
|
void |
removeValue(String k)
Remove a value associated with a key.
|
void |
setId(String id)
Set the id attribute for this tag.
|
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
Set the page context.
|
void |
setParent(javax.servlet.jsp.tagext.Tag t)
Set the nesting tag of this tag.
|
void |
setValue(String k,
Object o)
Associate a value with a String key.
|
protected String id
protected javax.servlet.jsp.PageContext pageContext
public TrinidadTagSupport()
public static final javax.servlet.jsp.tagext.Tag findAncestorWithClass(javax.servlet.jsp.tagext.Tag from, Class klass)
The current version of the specification only provides one formal way of indicating the observable type of a tag handler: its tag handler implementation class, described in the tag-class subelement of the tag element. This is extended in an informal manner by allowing the tag library author to indicate in the description subelement an observable type. The type should be a subtype of the tag handler implementation class or void. This addititional constraint can be exploited by a specialized container that knows about that specific tag library, as in the case of the JSP standard tag library.
When a tag library author provides information on the observable type of a tag handler, client programmatic code should adhere to that constraint. Specifically, the Class passed to findAncestorWithClass should be a subtype of the observable type.
from
- The instance from where to start looking.klass
- The subclass of Tag or interface to be matchedpublic int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
- if an error occurs while processing this tagTag.doStartTag()
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
in interface javax.servlet.jsp.tagext.Tag
javax.servlet.jsp.JspException
- if an error occurs while processing this tagTag.doEndTag()
public int doAfterBody() throws javax.servlet.jsp.JspException
doAfterBody
in interface javax.servlet.jsp.tagext.IterationTag
javax.servlet.jsp.JspException
- if an error occurs while processing this tagIterationTag.doAfterBody()
public void release()
release
in interface javax.servlet.jsp.tagext.Tag
Tag.release()
public void setParent(javax.servlet.jsp.tagext.Tag t)
setParent
in interface javax.servlet.jsp.tagext.Tag
t
- The parent Tag.Tag.setParent(Tag)
public javax.servlet.jsp.tagext.Tag getParent()
getParent
in interface javax.servlet.jsp.tagext.Tag
Tag.getParent()
public void setId(String id)
id
- The String for the id.public String getId()
public void setPageContext(javax.servlet.jsp.PageContext pageContext)
setPageContext
in interface javax.servlet.jsp.tagext.Tag
pageContext
- The PageContext.Tag.setPageContext(javax.servlet.jsp.PageContext)
public void setValue(String k, Object o)
k
- The key String.o
- The value to associate.public Object getValue(String k)
k
- The string key.public void removeValue(String k)
k
- The string key.public Enumeration<String> getValues()
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.