|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.apache.xerces.impl.xs.XMLSchemaLoader
public class 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 String |
CONTINUE_AFTER_FATAL_ERROR
Deprecated. Feature identifier: continue after fatal error. |
static String |
EMPTY_STRING
Deprecated. |
static String |
ENTITY_RESOLVER
Deprecated. Property identifier: entity resolver. |
protected static String |
ERROR_HANDLER
Deprecated. Property identifier: error handler. |
static String |
ERROR_REPORTER
Deprecated. Property identifier: error reporter. |
protected static String |
JAXP_SCHEMA_SOURCE
Deprecated. Property identifier: JAXP schema source. |
protected static String |
SCHEMA_FULL_CHECKING
Deprecated. Feature identifier: schema full checking |
protected static String |
SCHEMA_LOCATION
Deprecated. Property identifier: schema location. |
protected static String |
SCHEMA_NONS_LOCATION
Deprecated. Property identifier: no namespace schema location. |
static String |
SYMBOL_TABLE
Deprecated. Property identifier: symbol table. |
static String |
XMLGRAMMAR_POOL
Deprecated. Property identifier: grammar pool. |
Constructor Summary | |
---|---|
XMLSchemaLoader()
Deprecated. |
|
XMLSchemaLoader(SymbolTable symbolTable)
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[] |
getRecognizedFeatures()
Deprecated. Returns a list of feature identifiers that are recognized by this XMLGrammarLoader. |
String[] |
getRecognizedProperties()
Deprecated. Returns a list of property identifiers that are recognized by this XMLGrammarLoader. |
Grammar |
loadGrammar(XMLInputSource source)
Deprecated. Returns a Grammar object by parsing the contents of the entity pointed to by source. |
void |
reset()
Deprecated. |
static XMLInputSource |
resolveDocument(XSDDescription desc,
Hashtable locationPairs,
XMLEntityResolver entityResolver)
Deprecated. |
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 state)
Deprecated. Sets the state of a property. |
static boolean |
tokenizeSchemaLocationStr(String schemaStr,
Hashtable locations)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String EMPTY_STRING
protected static final String SCHEMA_FULL_CHECKING
protected static final String CONTINUE_AFTER_FATAL_ERROR
public static final String SYMBOL_TABLE
public static final String ERROR_REPORTER
protected static final String ERROR_HANDLER
public static final String ENTITY_RESOLVER
public static final String XMLGRAMMAR_POOL
protected static final String SCHEMA_LOCATION
protected static final String SCHEMA_NONS_LOCATION
protected static final String JAXP_SCHEMA_SOURCE
Constructor Detail |
---|
public XMLSchemaLoader()
public XMLSchemaLoader(SymbolTable symbolTable)
Method Detail |
---|
public String[] getRecognizedFeatures()
getRecognizedFeatures
in interface XMLGrammarLoader
public boolean getFeature(String featureId) throws XMLConfigurationException
getFeature
in interface XMLGrammarLoader
featureId
- The feature identifier.
XMLConfigurationException
- Thrown on configuration error.public void setFeature(String featureId, boolean state) throws XMLConfigurationException
setFeature
in interface XMLGrammarLoader
featureId
- The feature identifier.state
- The state of the feature.
XMLConfigurationException
- Thrown when a feature is not
recognized or cannot be set.public String[] getRecognizedProperties()
getRecognizedProperties
in interface XMLGrammarLoader
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 state) throws XMLConfigurationException, ClassCastException
setProperty
in interface XMLGrammarLoader
propertyId
- The property identifier.state
- The state of the property.
XMLConfigurationException
- Thrown when a property is not
recognized or cannot be set.
ClassCastException
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 void reset()
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
public static XMLInputSource resolveDocument(XSDDescription desc, Hashtable locationPairs, XMLEntityResolver entityResolver) throws IOException
IOException
public static boolean tokenizeSchemaLocationStr(String schemaStr, Hashtable locations)
|
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 |