| java.lang.Object org.apache.xerces.impl.dtd.XMLDTDProcessor org.apache.xerces.impl.dtd.XMLDTDLoader
All known Subclasses: org.apache.xerces.impl.dtd.XML11DTDProcessor,
XMLDTDLoader | public class XMLDTDLoader extends XMLDTDProcessor implements XMLGrammarLoader(Code) | | 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
- http://xml.org/sax/features/namespaces
- http://apache.org/xml/properties/internal/symbol-table
- http://apache.org/xml/properties/internal/error-reporter
- http://apache.org/xml/properties/internal/grammar-pool
- http://apache.org/xml/properties/internal/datatype-validator-factory
author: Neil Graham, IBM author: Michael Glavassevich, IBM version: $Id: XMLDTDLoader.java 446755 2006-09-15 21:56:27Z mrglavas $ |
BALANCE_SYNTAX_TREES | final protected static String BALANCE_SYNTAX_TREES(Code) | | Feature identifier: balance syntax trees.
|
ENTITY_RESOLVER | final public static String ENTITY_RESOLVER(Code) | | Property identifier: entity resolver.
|
ERROR_HANDLER | final protected static String ERROR_HANDLER(Code) | | Property identifier: error handler.
|
STANDARD_URI_CONFORMANT_FEATURE | final protected static String STANDARD_URI_CONFORMANT_FEATURE(Code) | | Feature identifier: standard uri conformant feature.
|
XMLDTDLoader | public XMLDTDLoader()(Code) | | Deny default construction; we need a SymtolTable!
|
getLocale | public Locale getLocale()(Code) | | Return the Locale the XMLGrammarLoader is using.
|
getRecognizedFeatures | public String[] getRecognizedFeatures()(Code) | | 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.
|
getRecognizedProperties | public String[] getRecognizedProperties()(Code) | | 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.
|
getScannerVersion | protected short getScannerVersion()(Code) | | |
loadGrammar | public Grammar loadGrammar(XMLInputSource source) throws IOException, XNIException(Code) | | Returns a Grammar object by parsing the contents of the
entity pointed to by source.
Parameters: source - the location of the entity which formsthe starting point of the grammar to be constructed. throws: IOException - When a problem is encountered reading the entityXNIException When a condition arises (such as a FatalError) that requires parsingof the entity be terminated. |
reset | protected void reset()(Code) | | |
setEntityResolver | public void setEntityResolver(XMLEntityResolver entityResolver)(Code) | | Sets the entity resolver.
Parameters: entityResolver - The new entity resolver. |
setErrorHandler | public void setErrorHandler(XMLErrorHandler errorHandler)(Code) | | Sets the error handler.
Parameters: errorHandler - The error handler. |
setFeature | public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code) | | 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.
Parameters: featureId - The feature identifier. Parameters: state - The state of the feature. throws: SAXNotRecognizedException - The component should not throwthis exception. throws: SAXNotSupportedException - The component should not throwthis exception. |
setLocale | public void setLocale(Locale locale)(Code) | | Set the locale to use for messages.
Parameters: locale - The locale object to use for localization of messages. exception: XNIException - Thrown if the parser does not support thespecified locale. |
setProperty | public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code) | | 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.
Parameters: propertyId - The property identifier. Parameters: value - The value of the property. throws: SAXNotRecognizedException - The component should not throwthis exception. throws: SAXNotSupportedException - The component should not throwthis exception. |
Methods inherited from org.apache.xerces.impl.dtd.XMLDTDProcessor | public void any(Augmentations augs) throws XNIException(Code)(Java Doc) public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException(Code)(Java Doc) protected static void checkStandaloneEntityRef(String name, DTDGrammar grammar, XMLEntityDecl tempEntityDecl, XMLErrorReporter errorReporter) throws XNIException(Code)(Java Doc) public void comment(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) public void element(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc) public void elementDecl(String name, String contentModel, Augmentations augs) throws XNIException(Code)(Java Doc) public void empty(Augmentations augs) throws XNIException(Code)(Java Doc) public void endAttlist(Augmentations augs) throws XNIException(Code)(Java Doc) public void endConditional(Augmentations augs) throws XNIException(Code)(Java Doc) public void endContentModel(Augmentations augs) throws XNIException(Code)(Java Doc) public void endDTD(Augmentations augs) throws XNIException(Code)(Java Doc) public void endExternalSubset(Augmentations augs) throws XNIException(Code)(Java Doc) public void endGroup(Augmentations augs) throws XNIException(Code)(Java Doc) public void endParameterEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc) public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc) public XMLDTDContentModelHandler getDTDContentModelHandler()(Code)(Java Doc) public XMLDTDContentModelSource getDTDContentModelSource()(Code)(Java Doc) public XMLDTDHandler getDTDHandler()(Code)(Java Doc) public XMLDTDSource getDTDSource()(Code)(Java Doc) public Boolean getFeatureDefault(String featureId)(Code)(Java Doc) public Object getPropertyDefault(String propertyId)(Code)(Java Doc) public String[] getRecognizedFeatures()(Code)(Java Doc) public String[] getRecognizedProperties()(Code)(Java Doc) public void ignoredCharacters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs) throws XNIException(Code)(Java Doc) protected boolean isValidName(String name)(Code)(Java Doc) protected boolean isValidNmtoken(String nmtoken)(Code)(Java Doc) public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc) public void occurrence(short occurrence, Augmentations augs) throws XNIException(Code)(Java Doc) public void pcdata(Augmentations augs)(Code)(Java Doc) public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)(Java Doc) public void reset(XMLComponentManager componentManager) throws XMLConfigurationException(Code)(Java Doc) protected void reset()(Code)(Java Doc) public void separator(short separator, Augmentations augs) throws XNIException(Code)(Java Doc) public void setDTDContentModelHandler(XMLDTDContentModelHandler dtdContentModelHandler)(Code)(Java Doc) public void setDTDContentModelSource(XMLDTDContentModelSource source)(Code)(Java Doc) public void setDTDHandler(XMLDTDHandler dtdHandler)(Code)(Java Doc) public void setDTDSource(XMLDTDSource source)(Code)(Java Doc) public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc) public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc) public void startAttlist(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc) public void startConditional(short type, Augmentations augs) throws XNIException(Code)(Java Doc) public void startContentModel(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc) public void startDTD(XMLLocator locator, Augmentations augs) throws XNIException(Code)(Java Doc) public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc) public void startGroup(Augmentations augs) throws XNIException(Code)(Java Doc) public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs) throws XNIException(Code)(Java Doc)
|
|
|