| java.lang.Object com.mockrunner.tag.TagUtil
TagUtil | public class TagUtil (Code) | | Util class for tag test framework.
Please note, that the methods of this class take
Object parameters where JspTag
or JspContext would be suitable. The reason is,
that these classes do not exist in J2EE 1.3. This class is
usable with J2EE 1.3 and J2EE 1.4.
|
Method Summary | |
public static Object | createNestedTagInstance(Class tag, Object pageContext, Map attributes) Creates an
com.mockrunner.tag.NestedTag instance wrapping the
specified tag. | public static Object | createNestedTagInstance(Object tag, Object pageContext, Map attributes) Creates an
com.mockrunner.tag.NestedTag instance wrapping the
specified tag. | public static String | dumpTag(NestedTag tag, StringBuffer buffer, int level) Helper method to dump tags incl. | public static void | dumpTagTree(List bodyList, StringBuffer buffer, int level) Helper method to dump tags incl. | public static void | evalBody(List bodyList, Object pageContext) Handles body evaluation of a tag. | public static void | handleException(Tag tag, Throwable exc) Handles an exception that is thrown during tag lifecycle processing. | public static void | handleFinally(Tag tag) Handles the finally block of tag lifecycle processing. | public static void | populateTag(Object tag, Map attributes) Populates the specified attributes to the specified tag. |
dumpTagTree | public static void dumpTagTree(List bodyList, StringBuffer buffer, int level)(Code) | | Helper method to dump tags incl. child tags.
|
handleException | public static void handleException(Tag tag, Throwable exc) throws JspException(Code) | | Handles an exception that is thrown during tag lifecycle processing.
Invokes doCatch() , if the tag implements
TryCatchFinally .
Parameters: tag - the tag Parameters: exc - the exception to be handled |
handleFinally | public static void handleFinally(Tag tag)(Code) | | Handles the finally block of tag lifecycle processing.
Invokes doFinally() , if the tag implements
TryCatchFinally .
Parameters: tag - the tag |
populateTag | public static void populateTag(Object tag, Map attributes)(Code) | | Populates the specified attributes to the specified tag.
Parameters: tag - the tag Parameters: attributes - the attribute map |
|
|