com.sas.taglib.util.validators
Class ADSTagLibraryValidator
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagLibraryValidator
|
+--com.sas.taglib.util.validators.ADSTagLibraryValidator
- public class ADSTagLibraryValidator
- extends javax.servlet.jsp.tagext.TagLibraryValidator
Translation-time validator class for a JSP page using the SAS ADS tag library.
A reference to this class must be set in the tld file to be recognized by the servlet container.
For example:
<validator>
<validator-class>com.sas.taglib.util.validators.ADSTagLibraryValidator</validator-class>
</validator>
|
Field Summary |
protected ArrayList |
messageList
Array list of type ValidationMessage for return of validate method. |
static String |
RB_KEY
Static key for referencing the Internationalization Strings for this class |
|
Method Summary |
ValidationMessage[] |
validate(String prefix,
String uri,
PageData pageData)
Overrides the TagLibraryValidator validate method to validate a JSP page.
|
void |
validateNode(String prefix,
String uri,
Node node)
Validates a single node in the JSP page by calling any custom tag validation classes which implement
the ValidationInterface. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RB_KEY
public static final String RB_KEY
- Static key for referencing the Internationalization Strings for this class
messageList
protected ArrayList messageList
- Array list of type ValidationMessage for return of validate method.
ADSTagLibraryValidator
public ADSTagLibraryValidator()
- Default Constructor.
validate
public ValidationMessage[] validate(String prefix,
String uri,
PageData pageData)
- Overrides the TagLibraryValidator validate method to validate a JSP page.
This will get invoked once per directive in the JSP page. This method will
return null if the page is valid; otherwise the method should return an array
of ValidationMessage objects. An array of length zero is also interpreted as no
errors.
- Overrides:
validate in class TagLibraryValidator
- Parameters:
prefix - The tag prefix used for this tag in the current page.uri - The uri associated with the tag and prefix.node - The Node object which contains all the xml document information.- Returns:
- An array of ValidationMessages. These are the errors which occured on the current JSP page.
validateNode
public void validateNode(String prefix,
String uri,
Node node)
- Validates a single node in the JSP page by calling any custom tag validation classes which implement
the ValidationInterface. Recursively checks the subtags of this Node for validity.
- Parameters:
prefix - The tag prefix used for this tag in the current page.uri - The uri associated with the tag and prefix.node - The Node object which contains all the xml document information.
Copyright © 2005 SAS Institute Inc. All Rights Reserved.
javadoc generated Thu, 16 Feb 2006 02:29:49