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

Quick Search    Search Deep

com.aendvari.tethys.tag.model
Class ModelTreeTag  view ModelTreeTag download ModelTreeTag.java

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.aendvari.tethys.tag.data.DataTag
          extended bycom.aendvari.tethys.tag.context.ContextTag
              extended bycom.aendvari.tethys.tag.model.ModelTreeTag
All Implemented Interfaces:
com.aendvari.tethys.tag.context.ContextAncestorTag, com.aendvari.tethys.tag.data.DataAncestorTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, ModelTreeAncestorTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ModelTreeTag
extends com.aendvari.tethys.tag.context.ContextTag
implements ModelTreeAncestorTag

A base class for all tags requiring context.


Field Summary
protected  com.aendvari.tethys.context.model.ModelContext modelContext
          The com.aendvari.tethys.context.model.ModelContext object for this tag.
protected static java.lang.reflect.Method modelContextMethod
          The method to retrieve the context object from this tag.
protected  java.lang.String path
          The path to the context in the ModelTree.
 
Fields inherited from class com.aendvari.tethys.tag.context.ContextTag
context
 
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
ModelTreeTag()
          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  void establishModelContext()
          Establishes the com.aendvari.tethys.context.Context of this tag.
 com.aendvari.tethys.context.model.ModelContext getModelContext()
           
protected  com.aendvari.common.model.ModelNode getModelNode(java.lang.String path, boolean allowNull)
          Returns the com.aendvari.common.model.ModelNode for the specified path.
 com.aendvari.tethys.context.model.ModelContext getParentModelContext()
          Returns the parent com.aendvari.tethys.context.Context for this tag.
 java.lang.String getPath()
           
 void release()
          Release all allocated resources.
 void setPath(java.lang.String path)
           
 
Methods inherited from class com.aendvari.tethys.tag.context.ContextTag
determineContext, getContext, getParentContext, setContext
 
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

path

protected java.lang.String path
The path to the context in the ModelTree.


modelContext

protected com.aendvari.tethys.context.model.ModelContext modelContext
The com.aendvari.tethys.context.model.ModelContext object for this tag.


modelContextMethod

protected static java.lang.reflect.Method modelContextMethod
The method to retrieve the context object from this tag.

Constructor Detail

ModelTreeTag

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

Method Detail

setPath

public void setPath(java.lang.String path)

getPath

public java.lang.String getPath()

getModelContext

public com.aendvari.tethys.context.model.ModelContext getModelContext()
Specified by:
getModelContext in interface ModelTreeAncestorTag

release

public void release()
Release all allocated resources.

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

establishModelContext

protected void establishModelContext()
                              throws javax.servlet.jsp.JspTagException
Establishes the com.aendvari.tethys.context.Context of this tag. The internal 'modelContext' is set to com.aendvari.tethys.context.Context object associated with the context string.


getParentModelContext

public com.aendvari.tethys.context.model.ModelContext getParentModelContext()
                                                                     throws javax.servlet.jsp.JspTagException
Returns the parent com.aendvari.tethys.context.Context for this tag.


getModelNode

protected com.aendvari.common.model.ModelNode getModelNode(java.lang.String path,
                                                           boolean allowNull)
                                                    throws javax.servlet.jsp.JspTagException
Returns the com.aendvari.common.model.ModelNode for the specified path.