Package com.sun.tools.rngom.parse.xml
Class DtdContext
- java.lang.Object
-
- com.sun.tools.rngom.parse.xml.DtdContext
-
- All Implemented Interfaces:
ValidationContext,DTDHandler
public abstract class DtdContext extends Object implements 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(String notationName)Checks if a notation is declared with the specified name.booleanisUnparsedEntity(String entityName)Checks if an unparsed entity is declared with the specified name.voidnotationDecl(String name, String publicId, String systemId)voidunparsedEntityDecl(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 com.sun.tools.rngdatatype.ValidationContext
getBaseUri, resolveNamespacePrefix
-
-
-
-
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:
notationDeclin interfaceDTDHandler- Throws:
SAXException
-
unparsedEntityDecl
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException
- Specified by:
unparsedEntityDeclin interfaceDTDHandler- Throws:
SAXException
-
isNotation
public boolean isNotation(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(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()
-
-