Top Fields Constructors Methods
com.sun.tools.rngom.parse.xml

public abstract Class DtdContext

extends Object
implements DTDHandler, ValidationContext
Class Inheritance
All Implemented Interfaces
com.sun.tools.rngdatatype.ValidationContext, org.xml.sax.DTDHandler
Known Direct Subclasses
com.sun.tools.rngom.parse.xml.SchemaParser.AbstractContext
Imports
org.xml.sax.DTDHandler, .SAXException, com.sun.tools.rngdatatype.ValidationContext, java.util.Hashtable

Field Summary

Modifier and TypeField and Description
private final Hashtable<K, V>
private final Hashtable<K, V>

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public void
public boolean
isNotation(String notationName)

Implements com.sun.tools.rngdatatype.ValidationContext.isNotation.

Checks if a notation is declared with the specified name.

public boolean
isUnparsedEntity(String entityName)

Implements com.sun.tools.rngdatatype.ValidationContext.isUnparsedEntity.

Checks if an unparsed entity is declared with the specified name.

public void
notationDecl(String name, String publicId, String systemId)

Implements org.xml.sax.DTDHandler.notationDecl.

Receive notification of a notation declaration event.

public void
unparsedEntityDecl(String name, String publicId, String systemId, String notationName)

Implements org.xml.sax.DTDHandler.unparsedEntityDecl.

Receive notification of an unparsed entity declaration event.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

notationTableback to summary
private final Hashtable<K, V> notationTable
unparsedEntityTableback to summary
private final Hashtable<K, V> unparsedEntityTable

Constructor Detail

DtdContextback to summary
public DtdContext()
DtdContextback to summary
public DtdContext(DtdContext dc)

Method Detail

clearDtdContextback to summary
public void clearDtdContext()
isNotationback to summary
public boolean isNotation(String notationName)

Implements com.sun.tools.rngdatatype.ValidationContext.isNotation.

Doc from com.sun.tools.rngdatatype.ValidationContext.isNotation.

Checks if a notation is declared with the specified name.

isUnparsedEntityback to summary
public boolean isUnparsedEntity(String entityName)

Implements com.sun.tools.rngdatatype.ValidationContext.isUnparsedEntity.

Doc from com.sun.tools.rngdatatype.ValidationContext.isUnparsedEntity.

Checks if an unparsed entity is declared with the specified name.

notationDeclback to summary
public void notationDecl(String name, String publicId, String systemId) throws SAXException

Implements org.xml.sax.DTDHandler.notationDecl.

Doc from org.xml.sax.DTDHandler.notationDecl.

Receive notification of a notation declaration event.

It is up to the application to record the notation for later reference, if necessary; notations may appear as attribute values and in unparsed entity declarations, and are sometime used with processing instruction target names.

At least one of publicId and systemId must be non-null. If a system identifier is present, and it is a URL, the SAX parser must resolve it fully before passing it to the application through this event.

There is no guarantee that the notation declaration will be reported before any unparsed entities that use it.

Exceptions
SAXException:
Any SAX exception, possibly wrapping another exception.
unparsedEntityDeclback to summary
public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException

Implements org.xml.sax.DTDHandler.unparsedEntityDecl.

Doc from org.xml.sax.DTDHandler.unparsedEntityDecl.

Receive notification of an unparsed entity declaration event.

Note that the notation name corresponds to a notation reported by the notationDecl event. It is up to the application to record the entity for later reference, if necessary; unparsed entities may appear as attribute values.

If the system identifier is a URL, the parser must resolve it fully before passing it to the application.

Exceptions
SAXException:
Any SAX exception, possibly wrapping another exception.