java.lang.Object | ||
↳ | org.apache.xerces.impl.dtd.XMLDTDProcessor | |
↳ | org.apache.xerces.impl.dtd.XMLDTDLoader |
Known Direct Subclasses |
The DTD loader. The loader knows how to build grammars from XMLInputSources. It extends the DTD processor in order to do this; it's a separate class because DTD processors don't need to know how to talk to the outside world in their role as instance-document helpers.
This component requires the following features and properties. It know ho to set them if no one else does:from the
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | BALANCE_SYNTAX_TREES | Feature identifier: balance syntax trees. | |||||||||
String | ENTITY_RESOLVER | Property identifier: entity resolver. | |||||||||
String | ERROR_HANDLER | Property identifier: error handler. | |||||||||
String | STANDARD_URI_CONFORMANT_FEATURE | Feature identifier: standard uri conformant feature. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.dtd.XMLDTDProcessor
| |||||||||||
From interface
org.apache.xerces.xni.XMLDTDContentModelHandler
| |||||||||||
From interface
org.apache.xerces.xni.XMLDTDHandler
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
fDTDScanner | |||||||||||
fEntityManager | |||||||||||
fEntityResolver | Entity resolver . | ||||||||||
fLocale |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.dtd.XMLDTDProcessor
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deny default construction; we need a SymtolTable!
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the registered entity resolver.
| |||||||||||
Returns the registered error handler.
| |||||||||||
Returns the state of a feature.
| |||||||||||
Return the Locale the XMLGrammarLoader is using.
| |||||||||||
Returns the state of a property.
| |||||||||||
Returns a list of feature identifiers that are recognized by
this component.
| |||||||||||
Returns a list of property identifiers that are recognized by
this component.
| |||||||||||
Returns a Grammar object by parsing the contents of the
entity pointed to by source.
| |||||||||||
Parse a DTD internal and/or external subset and insert the content
into the existing DTD grammar owned by the given DTDValidator.
| |||||||||||
Sets the entity resolver.
| |||||||||||
Sets the error handler.
| |||||||||||
Sets the state of a feature.
| |||||||||||
Set the locale to use for messages.
| |||||||||||
Sets the value of a property.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.impl.dtd.XMLDTDProcessor
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.apache.xerces.xni.XMLDTDContentModelHandler
| |||||||||||
From interface
org.apache.xerces.xni.XMLDTDHandler
| |||||||||||
From interface
org.apache.xerces.xni.grammars.XMLGrammarLoader
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLComponent
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLDTDContentModelSource
| |||||||||||
From interface
org.apache.xerces.xni.parser.XMLDTDSource
|
Feature identifier: balance syntax trees.
Property identifier: entity resolver.
Property identifier: error handler.
Feature identifier: standard uri conformant feature.
Deny default construction; we need a SymtolTable!
Returns the state of a feature.
featureId | The feature identifier. |
---|
XMLConfigurationException | Thrown on configuration error. |
---|
Returns the state of a property.
propertyId | The property identifier. |
---|
XMLConfigurationException | Thrown on configuration error. |
---|
Returns a list of feature identifiers that are recognized by this component. This method may return null if no features are recognized by this component.
Returns a list of property identifiers that are recognized by this component. This method may return null if no properties are recognized by this component.
Returns a Grammar object by parsing the contents of the entity pointed to by source.
source | the location of the entity which forms the starting point of the grammar to be constructed. |
---|
IOException | When a problem is encountered reading the entity XNIException When a condition arises (such as a FatalError) that requires parsing of the entity be terminated. |
---|---|
XNIException |
Parse a DTD internal and/or external subset and insert the content into the existing DTD grammar owned by the given DTDValidator.
IOException | |
---|---|
XNIException |
Sets the entity resolver.
entityResolver | The new entity resolver. |
---|
Sets the error handler.
errorHandler | The error handler. |
---|
Sets the state of a feature. This method is called by the component manager any time after reset when a feature changes state.
Note: Components should silently ignore features that do not affect the operation of the component.
featureId | The feature identifier. |
---|---|
state | The state of the feature. |
The component should not throw this exception. | |
The component should not throw this exception. | |
XMLConfigurationException |
Set the locale to use for messages.
locale | The locale object to use for localization of messages. |
---|
XNIException | Thrown if the parser does not support the specified locale. |
---|
Sets the value of a property. This method is called by the component manager any time after reset when a property changes value.
Note: Components should silently ignore properties that do not affect the operation of the component.
propertyId | The property identifier. |
---|---|
value | The value of the property. |
The component should not throw this exception. | |
The component should not throw this exception. | |
XMLConfigurationException |