Name
TagLibraryValidator
Synopsis
A subclass of the
TagLibraryValidator
class can be declared as the validator
for a tag library. The container invokes it at translation time,
providing it with the XML View of the page through a
PageData instance.
Synopsis
|
Class name: |
|
|
Extends: |
None |
|
Implements: |
None |
|
Implemented by: |
Internal container-dependent class. Most containers use the reference implementation of the class (developed in the Apache Jakarta project). |
Constructor
-
public TagLibraryValidator( ) Creates a new instance.
Methods
-
public java.util.Map getInitParameters( ) Returns a
Mapcontaining all initialization parameters declared in the TLD for the validator, with the parameter names as keys.-
public void release( ) Releases any resources kept as instance data.
-
public void setInitParameters(java.util.Map) Sets the
Mapcontaining all initialization parameters declared in the TLD for the validator, with the parameter names as keys.-
public ValidationMessage[]validate(String prefix, String uri,PageData page) Validates the specified page data, and returns null or an empty array if the page is valid. If errors are found, descriptions of the errors are returned as an array of
ValidationMessageinstances. Theprefixanduriarguments have the values of the correspondingtaglibdirective attributes.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access