org.apache.shale.clay.taglib
Class ClayTagValidator

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagLibraryValidator
      extended by org.apache.shale.clay.taglib.ClayTagValidator

public class ClayTagValidator
extends TagLibraryValidator

Validates the JSP page for the clay namespace, "http://shale.apache.org/shale/clay-plugin". This tag validator checks to make sure that there are not any nested tags under the ClayTag with the exception of the SymbolTag.


Constructor Summary
ClayTagValidator()
           
 
Method Summary
protected  StringBuffer loadTemplate(PageData page)
          Loads the page content into a StringBuffer.
 ValidationMessage[] validate(String prefix, String uri, PageData page)
          Validates the page for a directive with a uri of "http://shale.apache.org/shale/clay-plugin".
 
Methods inherited from class javax.servlet.jsp.tagext.TagLibraryValidator
getInitParameters, release, setInitParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClayTagValidator

public ClayTagValidator()
Method Detail

loadTemplate

protected StringBuffer loadTemplate(PageData page)
                             throws IOException

Loads the page content into a StringBuffer.

Parameters:
page - tag page data
Returns:
document in a string buffer
Throws:
IOException - error reading page data

validate

public ValidationMessage[] validate(String prefix,
                                    String uri,
                                    PageData page)

Validates the page for a directive with a uri of "http://shale.apache.org/shale/clay-plugin".

Overrides:
validate in class TagLibraryValidator
Parameters:
prefix - namespace
uri - namespace
page - normalized jsp page into XML
Returns:
error messages


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.