|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
com.mockrunner.tag.NestedBodyTag
Implementation of NestedTag wrapping tags of
type BodyTag. NestedBodyTag instances
are created with the help of TagTestModule.createNestedTag(java.lang.Class).
You do not need to create them on your own in the tests.
| Field Summary |
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id |
| 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 | |
NestedBodyTag(javax.servlet.jsp.tagext.BodyTag tag,
javax.servlet.jsp.PageContext pageContext)
Constructor for a tag with an empty attribute map. |
|
NestedBodyTag(javax.servlet.jsp.tagext.BodyTag tag,
javax.servlet.jsp.PageContext pageContext,
java.util.Map attributes)
Constructor for a tag with the specified attribute map. |
|
NestedBodyTag(javax.servlet.jsp.tagext.BodyTagSupport tag,
javax.servlet.jsp.PageContext pageContext)
Constructor for a tag with an empty attribute map. |
|
NestedBodyTag(javax.servlet.jsp.tagext.BodyTagSupport tag,
javax.servlet.jsp.PageContext pageContext,
java.util.Map attributes)
Constructor for a tag with the specified attribute map. |
|
| Method Summary | |
void |
addDynamicChild(DynamicChild child)
Implementation of NestedTag.addDynamicChild(com.mockrunner.tag.DynamicChild). |
NestedTag |
addTagChild(java.lang.Class tag)
Implementation of NestedTag.addTagChild(Class). |
NestedTag |
addTagChild(java.lang.Class tag,
java.util.Map attributeMap)
Implementation of NestedTag.addTagChild(Class, Map). |
NestedTag |
addTagChild(javax.servlet.jsp.tagext.JspTag tag)
Implementation of NestedTag.addTagChild(JspTag). |
NestedTag |
addTagChild(javax.servlet.jsp.tagext.JspTag tag,
java.util.Map attributeMap)
Implementation of NestedTag.addTagChild(JspTag, Map). |
NestedTag |
addTagChild(javax.servlet.jsp.tagext.TagSupport tag)
Implementation of NestedTag.addTagChild(TagSupport). |
NestedTag |
addTagChild(javax.servlet.jsp.tagext.TagSupport tag,
java.util.Map attributeMap)
Implementation of NestedTag.addTagChild(TagSupport, Map). |
void |
addTextChild(java.lang.String text)
Implementation of NestedTag.addTextChild(java.lang.String). |
int |
doAfterBody()
Delegates to wrapped tag. |
int |
doEndTag()
Delegates to wrapped tag. |
void |
doInitBody()
Delegates to wrapped tag. |
int |
doLifecycle()
Implementation of NestedTag.doLifecycle() for body
tags. |
int |
doStartTag()
Delegates to wrapped tag. |
javax.servlet.jsp.tagext.BodyContent |
getBodyContent()
Delegates to wrapped tag. |
java.lang.Object |
getChild(int index)
Implementation of NestedTag.getChild(int). |
java.util.List |
getChilds()
Implementation of NestedTag.getChilds(). |
java.lang.String |
getId()
Delegates to wrapped tag. |
javax.servlet.jsp.tagext.Tag |
getParent()
Delegates to wrapped tag. |
javax.servlet.jsp.JspWriter |
getPreviousOut()
Delegates to wrapped tag. |
javax.servlet.jsp.tagext.TagSupport |
getTag()
Implementation of NestedTag.getTag(). |
java.lang.Object |
getValue(java.lang.String key)
Delegates to wrapped tag. |
java.util.Enumeration |
getValues()
Delegates to wrapped tag. |
javax.servlet.jsp.tagext.JspTag |
getWrappedTag()
Implementation of NestedTag.getWrappedTag(). |
void |
populateAttributes()
Implementation of NestedTag.populateAttributes(). |
void |
release()
Delegates to wrapped tag. |
void |
removeChilds()
Implementation of NestedTag.removeChilds(). |
void |
removeValue(java.lang.String value)
Delegates to wrapped tag. |
void |
setBodyContent(javax.servlet.jsp.tagext.BodyContent content)
Delegates to wrapped tag. |
void |
setDoRelease(boolean doRelease)
Implementation of NestedTag.setDoRelease(boolean). |
void |
setDoReleaseRecursive(boolean doRelease)
Implementation of NestedTag.setDoReleaseRecursive(boolean). |
void |
setId(java.lang.String id)
Delegates to wrapped tag. |
void |
setPageContext(javax.servlet.jsp.PageContext pageContext)
Delegates to wrapped tag. |
void |
setParent(javax.servlet.jsp.tagext.Tag parent)
Delegates to wrapped tag. |
void |
setValue(java.lang.String key,
java.lang.Object value)
Delegates to wrapped tag. |
java.lang.String |
toString()
Dumps the content of this and the nested tags. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NestedBodyTag(javax.servlet.jsp.tagext.BodyTag tag,
javax.servlet.jsp.PageContext pageContext)
BodyTagSupport,
the methods that delegate to BodyTagSupport specific methods
throw an exception.
tag - the tagpageContext - the corresponding PageContext
public NestedBodyTag(javax.servlet.jsp.tagext.BodyTag tag,
javax.servlet.jsp.PageContext pageContext,
java.util.Map attributes)
BodyTagSupport,
the methods that delegate to BodyTagSupport specific methods
throw an exception.
tag - the tagpageContext - the corresponding PageContextattributes - the attribute map
public NestedBodyTag(javax.servlet.jsp.tagext.BodyTagSupport tag,
javax.servlet.jsp.PageContext pageContext)
tag - the tagpageContext - the corresponding PageContext
public NestedBodyTag(javax.servlet.jsp.tagext.BodyTagSupport tag,
javax.servlet.jsp.PageContext pageContext,
java.util.Map attributes)
tag - the tagpageContext - the corresponding PageContextattributes - the attribute map| Method Detail |
public void setDoRelease(boolean doRelease)
NestedTag.setDoRelease(boolean).
setDoRelease in interface NestedTagdoRelease - should release be called, default is falsepublic void setDoReleaseRecursive(boolean doRelease)
NestedTag.setDoReleaseRecursive(boolean).
setDoReleaseRecursive in interface NestedTagdoRelease - should release be called, default is falsepublic void populateAttributes()
NestedTag.populateAttributes().
populateAttributes in interface NestedTag
public int doLifecycle()
throws javax.servlet.jsp.JspException
NestedTag.doLifecycle() for body
tags.
doLifecycle in interface NestedTagdoEndTag call
javax.servlet.jsp.JspExceptionpublic javax.servlet.jsp.tagext.TagSupport getTag()
NestedTag.getTag().
getTag in interface NestedTagRuntimeException, - if the wrapped tag
is not an instance of TagSupportpublic javax.servlet.jsp.tagext.JspTag getWrappedTag()
NestedTag.getWrappedTag().
getWrappedTag in interface NestedTagpublic void removeChilds()
NestedTag.removeChilds().
removeChilds in interface NestedTagpublic java.util.List getChilds()
NestedTag.getChilds().
getChilds in interface NestedTagList of childspublic java.lang.Object getChild(int index)
NestedTag.getChild(int).
getChild in interface NestedTagindex - the index
public void addTextChild(java.lang.String text)
NestedTag.addTextChild(java.lang.String).
addTextChild in interface NestedTagtext - the static textpublic void addDynamicChild(DynamicChild child)
NestedTag.addDynamicChild(com.mockrunner.tag.DynamicChild).
addDynamicChild in interface NestedTagchild - the dynamic child instancepublic NestedTag addTagChild(java.lang.Class tag)
NestedTag.addTagChild(Class).
addTagChild in interface NestedTagtag - the tag class
public NestedTag addTagChild(java.lang.Class tag,
java.util.Map attributeMap)
NestedTag.addTagChild(Class, Map).
addTagChild in interface NestedTagtag - the tag classattributeMap - the attribute mappublic NestedTag addTagChild(javax.servlet.jsp.tagext.TagSupport tag)
NestedTag.addTagChild(TagSupport).
addTagChild in interface NestedTagtag - the tag
public NestedTag addTagChild(javax.servlet.jsp.tagext.TagSupport tag,
java.util.Map attributeMap)
NestedTag.addTagChild(TagSupport, Map).
addTagChild in interface NestedTagtag - the tagattributeMap - the attribute mappublic NestedTag addTagChild(javax.servlet.jsp.tagext.JspTag tag)
NestedTag.addTagChild(JspTag).
addTagChild in interface NestedTagtag - the tag
public NestedTag addTagChild(javax.servlet.jsp.tagext.JspTag tag,
java.util.Map attributeMap)
NestedTag.addTagChild(JspTag, Map).
addTagChild in interface NestedTagtag - the tagattributeMap - the attribute map
public int doAfterBody()
throws javax.servlet.jsp.JspException
doAfterBody in interface javax.servlet.jsp.tagext.IterationTagjavax.servlet.jsp.JspException
public int doEndTag()
throws javax.servlet.jsp.JspException
doEndTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspException
public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.Tagjavax.servlet.jsp.JspExceptionpublic java.lang.String getId()
RuntimeException, - if the wrapped tag
is not an instance of TagSupportpublic javax.servlet.jsp.tagext.Tag getParent()
getParent in interface javax.servlet.jsp.tagext.Tagpublic java.lang.Object getValue(java.lang.String key)
RuntimeException, - if the wrapped tag
is not an instance of TagSupportpublic java.util.Enumeration getValues()
RuntimeException, - if the wrapped tag
is not an instance of TagSupportpublic void release()
release in interface javax.servlet.jsp.tagext.Tagpublic void removeValue(java.lang.String value)
RuntimeException, - if the wrapped tag
is not an instance of TagSupportpublic void setId(java.lang.String id)
RuntimeException, - if the wrapped tag
is not an instance of TagSupportpublic void setPageContext(javax.servlet.jsp.PageContext pageContext)
setPageContext
for all child tags.
setPageContext in interface javax.servlet.jsp.tagext.Tagpublic void setParent(javax.servlet.jsp.tagext.Tag parent)
setParent in interface javax.servlet.jsp.tagext.Tag
public void setValue(java.lang.String key,
java.lang.Object value)
RuntimeException, - if the wrapped tag
is not an instance of TagSupport
public void doInitBody()
throws javax.servlet.jsp.JspException
doInitBody in interface javax.servlet.jsp.tagext.BodyTagjavax.servlet.jsp.JspExceptionpublic javax.servlet.jsp.tagext.BodyContent getBodyContent()
RuntimeException, - if the wrapped tag
is not an instance of BodyTagSupportpublic javax.servlet.jsp.JspWriter getPreviousOut()
RuntimeException, - if the wrapped tag
is not an instance of BodyTagSupportpublic void setBodyContent(javax.servlet.jsp.tagext.BodyContent content)
setBodyContent in interface javax.servlet.jsp.tagext.BodyTagpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||