com.thaiopensource.relaxng.parse.sax
Class DtdContext

java.lang.Object
  extended by com.thaiopensource.relaxng.parse.sax.DtdContext
All Implemented Interfaces:
ValidationContext, DTDHandler
Direct Known Subclasses:
PatternValidator, SchemaParser.AbstractContext

public abstract class DtdContext
extends Object
implements DTDHandler, ValidationContext


Field Summary
private  Hashtable notationTable
           
private  Hashtable unparsedEntityTable
           
 
Constructor Summary
DtdContext()
           
DtdContext(DtdContext dc)
           
 
Method Summary
 void clearDtdContext()
           
 boolean isNotation(String notationName)
          Checks if a notation is declared with the specified name.
 boolean isUnparsedEntity(String entityName)
          Checks if an unparsed entity is declared with the specified name.
 void notationDecl(String name, String publicId, String systemId)
           
 void unparsedEntityDecl(String name, String publicId, String systemId, String notationName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.relaxng.datatype.ValidationContext
getBaseUri, resolveNamespacePrefix
 

Field Detail

notationTable

private final Hashtable notationTable

unparsedEntityTable

private final Hashtable unparsedEntityTable
Constructor Detail

DtdContext

public DtdContext()

DtdContext

public DtdContext(DtdContext dc)
Method Detail

notationDecl

public void notationDecl(String name,
                         String publicId,
                         String systemId)
                  throws SAXException
Specified by:
notationDecl in interface DTDHandler
Throws:
SAXException

unparsedEntityDecl

public void unparsedEntityDecl(String name,
                               String publicId,
                               String systemId,
                               String notationName)
                        throws SAXException
Specified by:
unparsedEntityDecl in interface DTDHandler
Throws:
SAXException

isNotation

public boolean isNotation(String notationName)
Description copied from interface: ValidationContext
Checks if a notation is declared with the specified name.

Specified by:
isNotation in interface ValidationContext
Returns:
true if the DTD has a notation declaration for the specified name. false otherwise.

isUnparsedEntity

public boolean isUnparsedEntity(String entityName)
Description copied from interface: ValidationContext
Checks if an unparsed entity is declared with the specified name.

Specified by:
isUnparsedEntity in interface ValidationContext
Returns:
true if the DTD has an unparsed entity declaration for the specified name. false otherwise.

clearDtdContext

public void clearDtdContext()