Methods Summary |
---|
public int | doEndTag()Must not be called.
throw new UnsupportedOperationException(
"Illegal to invoke doEndTag() on TagAdapter wrapper" );
|
public int | doStartTag()Must not be called.
throw new UnsupportedOperationException(
"Illegal to invoke doStartTag() on TagAdapter wrapper" );
|
public JspTag | getAdaptee()Gets the tag that is being adapted to the Tag interface.
This should be an instance of SimpleTag in JSP 2.0, but room
is left for other kinds of tags in future spec versions.
return this.simpleTagAdaptee;
|
public Tag | getParent()Returns the parent of this tag, which is always
getAdaptee().getParent().
This will either be the enclosing Tag (if getAdaptee().getParent()
implements Tag), or an adapter to the enclosing Tag (if
getAdaptee().getParent() does not implement Tag).
if (!parentDetermined) {
JspTag adapteeParent = simpleTagAdaptee.getParent();
if (adapteeParent != null) {
if (adapteeParent instanceof Tag) {
this.parent = (Tag) adapteeParent;
} else {
// Must be SimpleTag - no other types defined.
this.parent = new TagAdapter((SimpleTag) adapteeParent);
}
}
parentDetermined = true;
}
return this.parent;
|
public void | release()Must not be called.
throw new UnsupportedOperationException(
"Illegal to invoke release() on TagAdapter wrapper" );
|
public void | setPageContext(PageContext pc)Must not be called.
throw new UnsupportedOperationException(
"Illegal to invoke setPageContext() on TagAdapter wrapper" );
|
public void | setParent(Tag parentTag)Must not be called. The parent of this tag is always
getAdaptee().getParent().
throw new UnsupportedOperationException(
"Illegal to invoke setParent() on TagAdapter wrapper" );
|