Class DtdContext
- java.lang.Object
-
- com.thaiopensource.relaxng.parse.sax.DtdContext
-
- All Implemented Interfaces:
ValidationContext,org.xml.sax.DTDHandler
public abstract class DtdContext extends java.lang.Object implements org.xml.sax.DTDHandler, ValidationContext
-
-
Constructor Summary
Constructors Constructor Description DtdContext()DtdContext(DtdContext dc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearDtdContext()booleanisNotation(java.lang.String notationName)Checks if a notation is declared with the specified name.booleanisUnparsedEntity(java.lang.String entityName)Checks if an unparsed entity is declared with the specified name.voidnotationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId)voidunparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.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
-
-
-
-
Constructor Detail
-
DtdContext
public DtdContext()
-
DtdContext
public DtdContext(DtdContext dc)
-
-
Method Detail
-
notationDecl
public void notationDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException- Specified by:
notationDeclin interfaceorg.xml.sax.DTDHandler- Throws:
org.xml.sax.SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(java.lang.String name, java.lang.String publicId, java.lang.String systemId, java.lang.String notationName) throws org.xml.sax.SAXException- Specified by:
unparsedEntityDeclin interfaceorg.xml.sax.DTDHandler- Throws:
org.xml.sax.SAXException
-
isNotation
public boolean isNotation(java.lang.String notationName)
Description copied from interface:ValidationContextChecks if a notation is declared with the specified name.- Specified by:
isNotationin interfaceValidationContext- Returns:
- true if the DTD has a notation declaration for the specified name. false otherwise.
-
isUnparsedEntity
public boolean isUnparsedEntity(java.lang.String entityName)
Description copied from interface:ValidationContextChecks if an unparsed entity is declared with the specified name.- Specified by:
isUnparsedEntityin interfaceValidationContext- Returns:
- true if the DTD has an unparsed entity declaration for the specified name. false otherwise.
-
clearDtdContext
public void clearDtdContext()
-
-