Package ee.jakarta.tck.pages.common.util
Class BaseTCKExtraInfo
java.lang.Object
jakarta.servlet.jsp.tagext.TagExtraInfo
ee.jakarta.tck.pages.common.util.BaseTCKExtraInfo
- Direct Known Subclasses:
FunctionInfoTEI
,TagAttributeInfoTEI
,TagDataTEI
,TagFileInfoTEI
,TagInfoTEI
,TagLibraryInfoTEI
,TagVarInfoTEI
public abstract class BaseTCKExtraInfo
extends jakarta.servlet.jsp.tagext.TagExtraInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected jakarta.servlet.jsp.tagext.TagData
Returns this TEI's TagData instance.static void
reset()
Resets the state of this TEI.static boolean
Called within the test pages to verify that the TEI was indeed called.jakarta.servlet.jsp.tagext.ValidationMessage[]
validate
(jakarta.servlet.jsp.tagext.TagData tagData) Called by the container to validate the page.Methods inherited from class jakarta.servlet.jsp.tagext.TagExtraInfo
getTagInfo, getVariableInfo, isValid, setTagInfo
-
Constructor Details
-
BaseTCKExtraInfo
public BaseTCKExtraInfo()Default constructor.
-
-
Method Details
-
validate
public jakarta.servlet.jsp.tagext.ValidationMessage[] validate(jakarta.servlet.jsp.tagext.TagData tagData) Called by the container to validate the page. This implementation will inspect the test attribute and invoke a method based on its value. These test methods will exist in subclasses of this base class.- Overrides:
validate
in classjakarta.servlet.jsp.tagext.TagExtraInfo
- Parameters:
tagData
- - A TagData instance provided by the container.- Returns:
- - null if the test passes, or a non-zero lenght array of ValidationMessages if the test fails.
-
teiWasCalled
public static boolean teiWasCalled()Called within the test pages to verify that the TEI was indeed called.- Returns:
- true if called, otherwise false
-
reset
public static void reset()Resets the state of this TEI. -
getTagData
protected jakarta.servlet.jsp.tagext.TagData getTagData()Returns this TEI's TagData instance.- Returns:
- this TEI's TagData instance.
-