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

Quick Search    Search Deep

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

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.aendvari.tethys.tag.data.DataTag
          extended bycom.aendvari.tethys.tag.context.ContextTag
All Implemented Interfaces:
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 ContextTag
extends com.aendvari.tethys.tag.data.DataTag
implements ContextAncestorTag

A base class for all 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.DataTag
dataScope, name
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
ContextTag()
          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.DataTag
getDataScope, getName, setDataScope, setName
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, doStartTag, 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
 

Field Detail

context

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

Constructor Detail

ContextTag

public ContextTag()
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