Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.aendvari.tethys.tag.context
Class ContextBodyTag  view ContextBodyTag download ContextBodyTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended bycom.aendvari.tethys.tag.data.DataBodyTag
              extended bycom.aendvari.tethys.tag.context.ContextBodyTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, ContextAncestorTag, com.aendvari.tethys.tag.data.DataAncestorTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public abstract class ContextBodyTag
extends com.aendvari.tethys.tag.data.DataBodyTag
implements ContextAncestorTag

A base class for all body tags requiring context.


Field Summary
protected  java.lang.String context
          The relative context in which this tag resides.
 
Fields inherited from class com.aendvari.tethys.tag.data.DataBodyTag
dataScope, name
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ContextBodyTag()
          Default constructor, all subclasses are required to only define a public constructor with the same signature, and to call the superclass constructor.
 
Method Summary
protected  com.aendvari.tethys.context.Context determineContext(com.aendvari.tethys.context.ContextMap contextMap, java.lang.Class ancestorClass, java.lang.reflect.Method contextMethod)
          Determines the com.aendvari.tethys.context.Context of this tag.
 java.lang.String getContext()
           
 com.aendvari.tethys.context.Context getParentContext(com.aendvari.tethys.context.ContextMap contextMap, javax.servlet.jsp.tagext.TagSupport tagSupport, java.lang.Class ancestorClass, java.lang.reflect.Method contextMethod)
          Returns the parent com.aendvari.tethys.context.Context for this tag.
 void release()
          Release all allocated resources.
 void setContext(java.lang.String context)
           
 
Methods inherited from class com.aendvari.tethys.tag.data.DataBodyTag
getDataScope, getName, setDataScope, setName
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Field Detail

context

protected java.lang.String context
The relative context in which this tag resides.

Constructor Detail

ContextBodyTag

public ContextBodyTag()
Default constructor, all subclasses are required to only define a public constructor with the same signature, and to call the superclass constructor.

Method Detail

getContext

public java.lang.String getContext()

setContext

public void setContext(java.lang.String context)

determineContext

protected com.aendvari.tethys.context.Context determineContext(com.aendvari.tethys.context.ContextMap contextMap,
                                                               java.lang.Class ancestorClass,
                                                               java.lang.reflect.Method contextMethod)
                                                        throws javax.servlet.jsp.JspTagException
Determines the com.aendvari.tethys.context.Context of this tag. The context parameter is used to select the com.aendvari.tethys.context.Context.


getParentContext

public com.aendvari.tethys.context.Context getParentContext(com.aendvari.tethys.context.ContextMap contextMap,
                                                            javax.servlet.jsp.tagext.TagSupport tagSupport,
                                                            java.lang.Class ancestorClass,
                                                            java.lang.reflect.Method contextMethod)
                                                     throws javax.servlet.jsp.JspTagException
Returns the parent com.aendvari.tethys.context.Context for this tag.


release

public void release()
Release all allocated resources.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag