javax.servlet.jsp.tagext
Class TagLibraryValidator

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagLibraryValidator
Direct Known Subclasses:
PermittedTaglibsTLV, ScriptFreeTLV

public abstract class TagLibraryValidator
extends java.lang.Object

Abstract class for a JSP page validator. The validator works on the XML version of the page.


Constructor Summary
TagLibraryValidator()
          Zero-arg constructor for the validator.
 
Method Summary
 java.util.Map<java.lang.String,java.lang.Object> getInitParameters()
          Returns an map of the init parameters specified in the .tld.
 void release()
          Release any data stored by the validator.
 void setInitParameters(java.util.Map<java.lang.String,java.lang.Object> initParameters)
          Sets the map of the init parameters specified in the .tld.
 ValidationMessage[] validate(java.lang.String prefix, java.lang.String uri, PageData data)
          Validate the page.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagLibraryValidator

public TagLibraryValidator()
Zero-arg constructor for the validator.

Method Detail

getInitParameters

public java.util.Map<java.lang.String,java.lang.Object> getInitParameters()
Returns an map of the init parameters specified in the .tld.


setInitParameters

public void setInitParameters(java.util.Map<java.lang.String,java.lang.Object> initParameters)
Sets the map of the init parameters specified in the .tld.


validate

public ValidationMessage[] validate(java.lang.String prefix,
                                    java.lang.String uri,
                                    PageData data)
Validate the page. This will be called once per directive.

Parameters:
prefix - the value of the directive's prefix.
uri - the value of the directive's URI.
data - the PageData representing the page.
Returns:
an array of validation messages

release

public void release()
Release any data stored by the validator.