|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xerces.impl.dtd.XMLDTDProcessor | +--weblogic.apache.xerces.impl.dtd.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 java.lang.String |
ENTITY_RESOLVER
Property identifier: entity resolver. |
protected static java.lang.String |
ERROR_HANDLER
Property identifier: error handler. |
protected XMLDTDScannerImpl |
fDTDScanner
|
protected XMLEntityManager |
fEntityManager
|
protected XMLEntityResolver |
fEntityResolver
Entity resolver . |
protected java.util.Locale |
fLocale
|
Fields inherited from class weblogic.apache.xerces.impl.dtd.XMLDTDProcessor |
DTD_VALIDATOR,
ERROR_REPORTER,
fDTDContentModelHandler,
fDTDGrammar,
fDTDHandler,
fDTDValidation,
fErrorReporter,
fGrammarBucket,
fGrammarPool,
fInDTDIgnore,
fLocale,
fSymbolTable,
fValidation,
fValidator,
fWarnDuplicateAttdef,
GRAMMAR_POOL,
NOTIFY_CHAR_REFS,
SYMBOL_TABLE,
VALIDATION,
WARN_ON_DUPLICATE_ATTDEF |
Constructor Summary | |
XMLDTDLoader()
Deny default construction; we need a SymtolTable! |
|
XMLDTDLoader(SymbolTable symbolTable)
|
|
XMLDTDLoader(SymbolTable symbolTable,
XMLGrammarPool grammarPool)
|
Method Summary | |
XMLEntityResolver |
getEntityResolver()
Returns the registered entity resolver. |
XMLErrorHandler |
getErrorHandler()
Returns the registered error handler. |
boolean |
getFeature(java.lang.String featureId)
Returns the state of a feature. |
java.util.Locale |
getLocale()
Return the Locale the XMLGrammarLoader is using. |
java.lang.Object |
getProperty(java.lang.String propertyId)
Returns the state of a property. |
java.lang.String[] |
getRecognizedProperties()
Returns a list of property identifiers that are recognized by this component. |
Grammar |
loadGrammar(XMLInputSource source)
Returns a Grammar object by parsing the contents of the entity pointed to by source. |
void |
setEntityResolver(XMLEntityResolver entityResolver)
Sets the entity resolver. |
void |
setErrorHandler(XMLErrorHandler errorHandler)
Sets the error handler. |
void |
setFeature(java.lang.String featureId,
boolean state)
Sets the state of a feature. |
void |
setLocale(java.util.Locale locale)
Set the locale to use for messages. |
void |
setProperty(java.lang.String propertyId,
java.lang.Object value)
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 |
Field Detail |
protected static final java.lang.String ERROR_HANDLER
public static final java.lang.String ENTITY_RESOLVER
protected XMLEntityResolver fEntityResolver
protected XMLDTDScannerImpl fDTDScanner
protected XMLEntityManager fEntityManager
protected java.util.Locale fLocale
Constructor Detail |
public XMLDTDLoader()
public XMLDTDLoader(SymbolTable symbolTable)
public XMLDTDLoader(SymbolTable symbolTable, XMLGrammarPool grammarPool)
Method Detail |
public void setFeature(java.lang.String featureId, boolean state) throws XMLConfigurationException
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.public java.lang.String[] getRecognizedProperties()
public java.lang.Object getProperty(java.lang.String propertyId) throws XMLConfigurationException
propertyId
- The property identifier.public void setProperty(java.lang.String propertyId, java.lang.Object value) throws XMLConfigurationException
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.public boolean getFeature(java.lang.String featureId) throws XMLConfigurationException
featureId
- The feature identifier.public void setLocale(java.util.Locale locale)
locale
- The locale object to use for localization of messages.public java.util.Locale getLocale()
public void setErrorHandler(XMLErrorHandler errorHandler)
errorHandler
- The error handler.public XMLErrorHandler getErrorHandler()
public void setEntityResolver(XMLEntityResolver entityResolver)
entityResolver
- The new entity resolver.public XMLEntityResolver getEntityResolver()
public Grammar loadGrammar(XMLInputSource source) throws java.io.IOException, XNIException
source
- the location of the entity which forms
the starting point of the grammar to be constructed.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |