|
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.xs.XMLSchemaLoader
This class implements XMLGrammarLoader. It is designed to interact either with a proxy for a user application which wants to preparse schemas, or with our own Schema validator. It is hoped that none of these "external" classes will therefore need to communicate directly with XSDHandler in future.
This class only knows how to make XSDHandler do its thing. The caller must ensure that all its properties (schemaLocation, JAXPSchemaSource etc.) have been properly set.
Field Summary | |
protected static java.lang.String |
CONTINUE_AFTER_FATAL_ERROR
Feature identifier: continue after fatal error. |
static java.lang.String |
EMPTY_STRING
|
static java.lang.String |
ENTITY_RESOLVER
Property identifier: entity resolver. |
protected static java.lang.String |
ERROR_HANDLER
Property identifier: error handler. |
static java.lang.String |
ERROR_REPORTER
Property identifier: error reporter. |
protected static java.lang.String |
JAXP_SCHEMA_SOURCE
Property identifier: JAXP schema source. |
protected static java.lang.String |
SCHEMA_FULL_CHECKING
Feature identifier: schema full checking |
protected static java.lang.String |
SCHEMA_LOCATION
Property identifier: schema location. |
protected static java.lang.String |
SCHEMA_NONS_LOCATION
Property identifier: no namespace schema location. |
static java.lang.String |
SYMBOL_TABLE
Property identifier: symbol table. |
static java.lang.String |
XMLGRAMMAR_POOL
Property identifier: grammar pool. |
Constructor Summary | |
XMLSchemaLoader()
|
|
XMLSchemaLoader(SymbolTable symbolTable)
|
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[] |
getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by this XMLGrammarLoader. |
java.lang.String[] |
getRecognizedProperties()
Returns a list of property identifiers that are recognized by this XMLGrammarLoader. |
Grammar |
loadGrammar(XMLInputSource source)
Returns a Grammar object by parsing the contents of the entity pointed to by source. |
void |
reset()
|
static XMLInputSource |
resolveDocument(XSDDescription desc,
java.util.Hashtable locationPairs,
XMLEntityResolver entityResolver)
|
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 state)
Sets the state of a property. |
static boolean |
tokenizeSchemaLocationStr(java.lang.String schemaStr,
java.util.Hashtable locations)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String EMPTY_STRING
protected static final java.lang.String SCHEMA_FULL_CHECKING
protected static final java.lang.String CONTINUE_AFTER_FATAL_ERROR
public static final java.lang.String SYMBOL_TABLE
public static final java.lang.String ERROR_REPORTER
protected static final java.lang.String ERROR_HANDLER
public static final java.lang.String ENTITY_RESOLVER
public static final java.lang.String XMLGRAMMAR_POOL
protected static final java.lang.String SCHEMA_LOCATION
protected static final java.lang.String SCHEMA_NONS_LOCATION
protected static final java.lang.String JAXP_SCHEMA_SOURCE
Constructor Detail |
public XMLSchemaLoader()
public XMLSchemaLoader(SymbolTable symbolTable)
Method Detail |
public java.lang.String[] getRecognizedFeatures()
public boolean getFeature(java.lang.String featureId) throws XMLConfigurationException
featureId
- The feature identifier.public void setFeature(java.lang.String featureId, boolean state) throws XMLConfigurationException
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 state) throws XMLConfigurationException, java.lang.ClassCastException
propertyId
- The property identifier.state
- The state of the property.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 void reset()
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.public static XMLInputSource resolveDocument(XSDDescription desc, java.util.Hashtable locationPairs, XMLEntityResolver entityResolver) throws java.io.IOException
public static boolean tokenizeSchemaLocationStr(java.lang.String schemaStr, java.util.Hashtable locations)
|
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 |