com.thaiopensource.relaxng.parse.sax
Class DtdContext
java.lang.Object
com.thaiopensource.relaxng.parse.sax.DtdContext
- All Implemented Interfaces:
- org.xml.sax.DTDHandler, ValidationContext
- Direct Known Subclasses:
- PatternValidator
- public abstract class DtdContext
- extends java.lang.Object
- implements org.xml.sax.DTDHandler, ValidationContext
Method Summary |
void |
clearDtdContext()
|
boolean |
isNotation(java.lang.String notationName)
Checks if a notation is declared with the
specified name. |
boolean |
isUnparsedEntity(java.lang.String entityName)
Checks if an unparsed entity is declared with the
specified name. |
void |
notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
|
void |
unparsedEntityDecl(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 |
DtdContext
public DtdContext()
DtdContext
public DtdContext(DtdContext dc)
notationDecl
public void notationDecl(java.lang.String name,
java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException
- Specified by:
notationDecl
in interface org.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:
unparsedEntityDecl
in interface org.xml.sax.DTDHandler
- Throws:
org.xml.sax.SAXException
isNotation
public boolean isNotation(java.lang.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(java.lang.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()