javax.servlet.jsp.tagext
Class TagAdapter

Wraps any SimpleTag and exposes it using a Tag interface. This is used
to allow collaboration between classic Tag handlers and SimpleTag
handlers.

Because SimpleTag does not extend Tag, and because Tag.setParent()
only accepts a Tag instance, a classic tag handler (one
that implements Tag) cannot have a SimpleTag as its parent. To remedy
this, a TagAdapter is created to wrap the SimpleTag parent, and the
adapter is passed to setParent() instead. A classic Tag Handler can
call getAdaptee() to retrieve the encapsulated SimpleTag instance.

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).