|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.apache.xerces.impl.dtd.XMLDTDProcessor
weblogic.apache.xerces.impl.dtd.XMLDTDLoader
public class XMLDTDLoader
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
Field Summary | |
---|---|
static String |
ENTITY_RESOLVER
Deprecated. Property identifier: entity resolver. |
protected static String |
ERROR_HANDLER
Deprecated. Property identifier: error handler. |
protected XMLDTDScannerImpl |
fDTDScanner
Deprecated. |
protected XMLEntityManager |
fEntityManager
Deprecated. |
protected XMLEntityResolver |
fEntityResolver
Deprecated. Entity resolver . |
protected Locale |
fLocale
Deprecated. |
Fields inherited from class weblogic.apache.xerces.impl.dtd.XMLDTDProcessor |
---|
DTD_VALIDATOR, ERROR_REPORTER, fDTDContentModelHandler, fDTDGrammar, fDTDHandler, fDTDValidation, fErrorReporter, fGrammarBucket, fGrammarPool, fInDTDIgnore, fSymbolTable, fValidation, fValidator, fWarnDuplicateAttdef, GRAMMAR_POOL, NOTIFY_CHAR_REFS, SYMBOL_TABLE, VALIDATION, WARN_ON_DUPLICATE_ATTDEF |
Fields inherited from interface weblogic.apache.xerces.xni.XMLDTDHandler |
---|
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE |
Fields inherited from interface weblogic.apache.xerces.xni.XMLDTDContentModelHandler |
---|
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE |
Constructor Summary | |
---|---|
XMLDTDLoader()
Deprecated. Deny default construction; we need a SymtolTable! |
|
XMLDTDLoader(SymbolTable symbolTable)
Deprecated. |
|
XMLDTDLoader(SymbolTable symbolTable,
XMLGrammarPool grammarPool)
Deprecated. |
Method Summary | |
---|---|
XMLEntityResolver |
getEntityResolver()
Deprecated. Returns the registered entity resolver. |
XMLErrorHandler |
getErrorHandler()
Deprecated. Returns the registered error handler. |
boolean |
getFeature(String featureId)
Deprecated. Returns the state of a feature. |
Locale |
getLocale()
Deprecated. Return the Locale the XMLGrammarLoader is using. |
Object |
getProperty(String propertyId)
Deprecated. Returns the state of a property. |
String[] |
getRecognizedProperties()
Deprecated. Returns a list of property identifiers that are recognized by this component. |
Grammar |
loadGrammar(XMLInputSource source)
Deprecated. Returns a Grammar object by parsing the contents of the entity pointed to by source. |
void |
setEntityResolver(XMLEntityResolver entityResolver)
Deprecated. Sets the entity resolver. |
void |
setErrorHandler(XMLErrorHandler errorHandler)
Deprecated. Sets the error handler. |
void |
setFeature(String featureId,
boolean state)
Deprecated. Sets the state of a feature. |
void |
setLocale(Locale locale)
Deprecated. Set the locale to use for messages. |
void |
setProperty(String propertyId,
Object value)
Deprecated. Sets the value of a property. |
Methods inherited from class weblogic.apache.xerces.impl.dtd.XMLDTDProcessor |
---|
any, attributeDecl, checkStandaloneEntityRef, comment, element, elementDecl, empty, endAttlist, endConditional, endContentModel, endDTD, endExternalSubset, endGroup, endParameterEntity, externalEntityDecl, getRecognizedFeatures, ignoredCharacters, internalEntityDecl, notationDecl, occurrence, pcdata, processingInstruction, reset, reset, separator, setDTDContentModelHandler, setDTDHandler, startAttlist, startConditional, startContentModel, startDTD, startExternalSubset, startGroup, startParameterEntity, textDecl, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface weblogic.apache.xerces.xni.grammars.XMLGrammarLoader |
---|
getRecognizedFeatures |
Field Detail |
---|
protected static final String ERROR_HANDLER
public static final String ENTITY_RESOLVER
protected XMLEntityResolver fEntityResolver
protected XMLDTDScannerImpl fDTDScanner
protected XMLEntityManager fEntityManager
protected Locale fLocale
Constructor Detail |
---|
public XMLDTDLoader()
public XMLDTDLoader(SymbolTable symbolTable)
public XMLDTDLoader(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Method Detail |
---|
public void setFeature(String featureId, boolean state) throws XMLConfigurationException
Note: Components should silently ignore features that do not affect the operation of the component.
setFeature
in interface XMLGrammarLoader
setFeature
in interface XMLComponent
setFeature
in class XMLDTDProcessor
featureId
- The feature identifier.state
- The state of the feature.
SAXNotRecognizedException
- The component should not throw
this exception.
SAXNotSupportedException
- The component should not throw
this exception.
XMLConfigurationException
- Thrown for configuration error.
In general, components should
only throw this exception if
it is really
a critical error.public String[] getRecognizedProperties()
getRecognizedProperties
in interface XMLGrammarLoader
getRecognizedProperties
in interface XMLComponent
getRecognizedProperties
in class XMLDTDProcessor
public Object getProperty(String propertyId) throws XMLConfigurationException
getProperty
in interface XMLGrammarLoader
propertyId
- The property identifier.
XMLConfigurationException
- Thrown on configuration error.public void setProperty(String propertyId, Object value) throws XMLConfigurationException
Note: Components should silently ignore properties that do not affect the operation of the component.
setProperty
in interface XMLGrammarLoader
setProperty
in interface XMLComponent
setProperty
in class XMLDTDProcessor
propertyId
- The property identifier.value
- The value of the property.
SAXNotRecognizedException
- The component should not throw
this exception.
SAXNotSupportedException
- The component should not throw
this exception.
XMLConfigurationException
- Thrown for configuration error.
In general, components should
only throw this exception if
it is really
a critical error.public boolean getFeature(String featureId) throws XMLConfigurationException
getFeature
in interface XMLGrammarLoader
featureId
- The feature identifier.
XMLConfigurationException
- Thrown on configuration error.public void setLocale(Locale locale)
setLocale
in interface XMLGrammarLoader
locale
- The locale object to use for localization of messages.
XNIException
- Thrown if the parser does not support the
specified locale.public Locale getLocale()
getLocale
in interface XMLGrammarLoader
public void setErrorHandler(XMLErrorHandler errorHandler)
setErrorHandler
in interface XMLGrammarLoader
errorHandler
- The error handler.public XMLErrorHandler getErrorHandler()
getErrorHandler
in interface XMLGrammarLoader
public void setEntityResolver(XMLEntityResolver entityResolver)
setEntityResolver
in interface XMLGrammarLoader
entityResolver
- The new entity resolver.public XMLEntityResolver getEntityResolver()
getEntityResolver
in interface XMLGrammarLoader
public Grammar loadGrammar(XMLInputSource source) throws IOException, XNIException
loadGrammar
in interface XMLGrammarLoader
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
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |