|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.servlet.jsp.tagext.SimpleTagSupport
com.mockrunner.tag.NestedSimpleTag
Implementation of NestedTag wrapping tags of
type SimpleTag. NestedSimpleTag 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.
| Constructor Summary | |
NestedSimpleTag(javax.servlet.jsp.tagext.SimpleTag tag,
javax.servlet.jsp.JspContext jspContext)
Constructor for a tag with an empty attribute map. |
|
NestedSimpleTag(javax.servlet.jsp.tagext.SimpleTag tag,
javax.servlet.jsp.JspContext jspContext,
java.util.Map attributes)
Constructor for a tag with the specified attribute map. |
|
NestedSimpleTag(javax.servlet.jsp.tagext.SimpleTagSupport tag,
javax.servlet.jsp.JspContext jspContext)
Constructor for a tag with an empty attribute map. |
|
NestedSimpleTag(javax.servlet.jsp.tagext.SimpleTagSupport tag,
javax.servlet.jsp.JspContext jspContext,
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 |
doLifecycle()
Implementation of NestedTag.doLifecycle() for simple
tags. |
void |
doTag()
Delegates to wrapped tag. |
java.lang.Object |
getChild(int index)
Implementation of NestedTag.getChild(int). |
java.util.List |
getChilds()
Implementation of NestedTag.getChilds(). |
javax.servlet.jsp.tagext.JspFragment |
getJspBody()
Returns the body fragment. |
javax.servlet.jsp.JspContext |
getJspContext()
Returns the JspContext. |
javax.servlet.jsp.tagext.JspTag |
getParent()
Delegates to wrapped tag. |
javax.servlet.jsp.tagext.TagSupport |
getTag()
Implementation of NestedTag.getTag(). |
javax.servlet.jsp.tagext.JspTag |
getWrappedTag()
Implementation of NestedTag.getWrappedTag(). |
void |
populateAttributes()
Implementation of NestedTag.populateAttributes(). |
void |
removeChilds()
Implementation of NestedTag.removeChilds(). |
void |
setDoRelease(boolean doRelease)
Implementation of NestedTag.setDoRelease(boolean). |
void |
setDoReleaseRecursive(boolean doRelease)
Implementation of NestedTag.setDoReleaseRecursive(boolean). |
void |
setJspBody(javax.servlet.jsp.tagext.JspFragment jspBody)
Delegates to wrapped tag. |
void |
setJspContext(javax.servlet.jsp.JspContext jspContext)
Delegates to wrapped tag. |
void |
setParent(javax.servlet.jsp.tagext.JspTag parent)
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.SimpleTagSupport |
findAncestorWithClass |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NestedSimpleTag(javax.servlet.jsp.tagext.SimpleTag tag,
javax.servlet.jsp.JspContext jspContext)
tag - the tagjspContext - the corresponding JspContext
public NestedSimpleTag(javax.servlet.jsp.tagext.SimpleTag tag,
javax.servlet.jsp.JspContext jspContext,
java.util.Map attributes)
tag - the tagjspContext - the corresponding JspContextattributes - the attribute map
public NestedSimpleTag(javax.servlet.jsp.tagext.SimpleTagSupport tag,
javax.servlet.jsp.JspContext jspContext)
tag - the tagjspContext - the corresponding JspContext
public NestedSimpleTag(javax.servlet.jsp.tagext.SimpleTagSupport tag,
javax.servlet.jsp.JspContext jspContext,
java.util.Map attributes)
tag - the tagjspContext - the corresponding JspContextattributes - the attribute map| Method Detail |
public void setDoRelease(boolean doRelease)
NestedTag.setDoRelease(boolean).
Does nothing in this case.
setDoRelease in interface NestedTagdoRelease - should release be called, default is falsepublic void setDoReleaseRecursive(boolean doRelease)
NestedTag.setDoReleaseRecursive(boolean).
Does nothing in this case.
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 simple
tags. Returns -1 in this case, because
doTag() does not have a return value.
doLifecycle in interface NestedTagdoEndTag call
javax.servlet.jsp.JspExceptionpublic javax.servlet.jsp.tagext.TagSupport getTag()
NestedTag.getTag().
Should not be called and throws a RuntimeException,
because a simple tag is not an instance of TagSupport.
getTag in interface NestedTagpublic 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 void doTag()
throws javax.servlet.jsp.JspException,
java.io.IOException
doTag in interface javax.servlet.jsp.tagext.SimpleTagjavax.servlet.jsp.JspException
java.io.IOExceptionpublic javax.servlet.jsp.tagext.JspFragment getJspBody()
public javax.servlet.jsp.JspContext getJspContext()
JspContext.
JspContextpublic javax.servlet.jsp.tagext.JspTag getParent()
getParent in interface javax.servlet.jsp.tagext.SimpleTagpublic void setJspBody(javax.servlet.jsp.tagext.JspFragment jspBody)
setJspBody in interface javax.servlet.jsp.tagext.SimpleTagpublic void setJspContext(javax.servlet.jsp.JspContext jspContext)
setJspContext
on the body fragment, if the body fragment is an instance of
MockJspFragment
setJspContext in interface javax.servlet.jsp.tagext.SimpleTagpublic void setParent(javax.servlet.jsp.tagext.JspTag parent)
setParent in interface javax.servlet.jsp.tagext.SimpleTagpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||