org.apache.tapestry.parse
Class ValidatePublicIdRule

java.lang.Object
  extended by org.apache.tapestry.parse.BaseDocumentRule
      extended by org.apache.tapestry.parse.ValidatePublicIdRule
All Implemented Interfaces:
IDocumentRule

public class ValidatePublicIdRule
extends BaseDocumentRule

Rule used to validate the public id of the document, ensuring that it is not null, and that it matches an expected value.

Since:
3.0
Version:
$Id: ValidatePublicIdRule.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

Constructor Summary
ValidatePublicIdRule(String[] publicIds, String rootElement)
           
 
Method Summary
 void startDocument(String namespace, String name, org.xml.sax.Attributes attributes)
          Invoked at the time the first element in the document is parsed.
 
Methods inherited from class org.apache.tapestry.parse.BaseDocumentRule
endDocument, finish, getDigester, setDigester
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidatePublicIdRule

public ValidatePublicIdRule(String[] publicIds,
                            String rootElement)
Method Detail

startDocument

public void startDocument(String namespace,
                          String name,
                          org.xml.sax.Attributes attributes)
                   throws Exception
Description copied from interface: IDocumentRule
Invoked at the time the first element in the document is parsed. By this time, the publicId will be known.

Specified by:
startDocument in interface IDocumentRule
Overrides:
startDocument in class BaseDocumentRule
Throws:
Exception