com.thaiopensource.relaxng.parse.sax
Class DtdContext
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
notationTable
private final Hashtable notationTable
unparsedEntityTable
private final Hashtable unparsedEntityTable
DtdContext
public DtdContext()
DtdContext
public DtdContext(DtdContext dc)
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()