Class PageDataValidator
java.lang.Object
jakarta.servlet.jsp.tagext.TagLibraryValidator
ee.jakarta.tck.pages.api.jakarta_servlet.jsp.tagext.pagedata.PageDataValidator
public class PageDataValidator
extends jakarta.servlet.jsp.tagext.TagLibraryValidator
Validate the PageData object provided to a configured TagLibraryValidator.
-
Constructor Summary
ConstructorsConstructorDescriptionInitializes the parser factory when the TLV is first created. -
Method Summary
Modifier and TypeMethodDescriptionvoid
release()
Releases any state associated with this TLV.static void
reset()
Resets the TLV invocation status.jakarta.servlet.jsp.tagext.ValidationMessage[]
Validates the XML view of the JSP page using the provided PageData object.static boolean
Returns the TVL invocation status.Methods inherited from class jakarta.servlet.jsp.tagext.TagLibraryValidator
getInitParameters, setInitParameters
-
Constructor Details
-
PageDataValidator
public PageDataValidator()Initializes the parser factory when the TLV is first created.
-
-
Method Details
-
validate
public jakarta.servlet.jsp.tagext.ValidationMessage[] validate(String prefix, String uri, jakarta.servlet.jsp.tagext.PageData page) Validates the XML view of the JSP page using the provided PageData object.- Overrides:
validate
in classjakarta.servlet.jsp.tagext.TagLibraryValidator
- Parameters:
prefix
- - the tag library prefixuri
- - the tag library URIpage
- - the PageData object.- Returns:
- null if no validation errors occurred, otherwise an non-zero-length array of ValidationMessages.
-
release
public void release()Releases any state associated with this TLV.- Overrides:
release
in classjakarta.servlet.jsp.tagext.TagLibraryValidator
-
wasCalled
public static boolean wasCalled()Returns the TVL invocation status.- Returns:
- true if the TLV has been called, otherwise false
-
reset
public static void reset()Resets the TLV invocation status.
-