org.apache.xerces.impl.xs
public class XMLSchemaLoader extends Object implements XMLGrammarLoader, XMLComponent, XSLoader, DOMConfiguration
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.
Version: $Id: XMLSchemaLoader.java,v 1.42 2005/07/25 04:54:15 mrglavas Exp $
Field Summary | |
---|---|
protected static String | ALLOW_JAVA_ENCODINGS Feature identifier: allow java encodings to be recognized when parsing schema docs. |
protected static String | AUGMENT_PSVI |
protected static String | CONTINUE_AFTER_FATAL_ERROR Feature identifier: continue after fatal error. |
protected static String | DISALLOW_DOCTYPE Feature: disallow doctype |
protected static String | ENTITY_MANAGER |
static String | ENTITY_RESOLVER Property identifier: entity resolver. |
protected static String | ERROR_HANDLER Property identifier: error handler. |
static String | ERROR_REPORTER Property identifier: error reporter. |
protected static String | GENERATE_SYNTHETIC_ANNOTATIONS Feature: generate synthetic annotations |
protected static String | HONOUR_ALL_SCHEMALOCATIONS Feature identifier: honour all schemaLocations |
protected static String | JAXP_SCHEMA_SOURCE Property identifier: JAXP schema source. |
protected static String | PARSER_SETTINGS |
protected static String | SCHEMA_FULL_CHECKING Feature identifier: schema full checking |
protected static String | SCHEMA_LOCATION Property identifier: schema location. |
protected static String | SCHEMA_NONS_LOCATION Property identifier: no namespace schema location. |
protected static String | SECURITY_MANAGER |
protected static String | STANDARD_URI_CONFORMANT_FEATURE Feature identifier: standard uri conformant feature. |
static String | SYMBOL_TABLE Property identifier: symbol table. |
protected static String | VALIDATE_ANNOTATIONS Feature identifier: validate annotations. |
static String | XMLGRAMMAR_POOL Property identifier: grammar pool. |
Constructor Summary | |
---|---|
XMLSchemaLoader() | |
XMLSchemaLoader(SymbolTable symbolTable) |
Method Summary | |
---|---|
boolean | canSetParameter(String name, Object value) |
DOMConfiguration | getConfig() |
XMLEntityResolver | getEntityResolver() Returns the registered entity resolver. |
XMLErrorHandler | getErrorHandler() Returns the registered error handler. |
boolean | getFeature(String featureId)
Returns the state of a feature.
|
Boolean | getFeatureDefault(String featureId) |
Locale | getLocale() Return the Locale the XMLGrammarLoader is using. |
Object | getParameter(String name) |
DOMStringList | getParameterNames() |
Object | getProperty(String propertyId)
Returns the state of a property.
|
Object | getPropertyDefault(String propertyId) |
String[] | getRecognizedFeatures()
Returns a list of feature identifiers that are recognized by
this XMLGrammarLoader. |
String[] | getRecognizedProperties()
Returns a list of property identifiers that are recognized by
this XMLGrammarLoader. |
XSModel | load(LSInput is) |
void | loadGrammar(XMLInputSource[] source)
Returns a Grammar object by parsing the contents of the
entities pointed to by sources.
|
Grammar | loadGrammar(XMLInputSource source)
Returns a Grammar object by parsing the contents of the
entity pointed to by source.
|
XSModel | loadInputList(LSInputList is) |
XSModel | loadURI(String uri) |
XSModel | loadURIList(StringList uriList) |
static void | processExternalHints(String sl, String nsl, Hashtable locations, XMLErrorReporter er) |
void | reset(XMLComponentManager componentManager) |
static XMLInputSource | resolveDocument(XSDDescription desc, Hashtable locationPairs, XMLEntityResolver entityResolver) This method tries to resolve location of the given schema.
|
void | setEntityResolver(XMLEntityResolver entityResolver)
Sets the entity resolver.
|
void | setErrorHandler(XMLErrorHandler errorHandler)
Sets the error handler.
|
void | setFeature(String featureId, boolean state)
Sets the state of a feature.
|
void | setLocale(Locale locale)
Set the locale to use for messages.
|
void | setParameter(String name, Object value) |
void | setProperty(String propertyId, Object state)
Sets the state of a property.
|
static boolean | tokenizeSchemaLocationStr(String schemaStr, Hashtable locations) |
Parameters: featureId The feature identifier.
Throws: XMLConfigurationException Thrown on configuration error.
Parameters: propertyId The property identifier.
Throws: XMLConfigurationException Thrown on configuration error.
Parameters: source[] the locations of the entity which forms the staring point of the grammars to be constructed
Throws: IOException when a problem is encounted reading the entity XNIException when a condition arises (such as a FatalError) that requires parsing of the entity be terminated
Parameters: source the location of the entity which forms the starting point of the grammar to be constructed.
Throws: 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.
Parameters: desc locationPairs entityResolver
Returns:
Throws: IOException
Parameters: entityResolver The new entity resolver.
Parameters: errorHandler The error handler.
Parameters: featureId The feature identifier. state The state of the feature.
Throws: XMLConfigurationException Thrown when a feature is not recognized or cannot be set.
Parameters: locale The locale object to use for localization of messages.
Throws: XNIException Thrown if the parser does not support the specified locale.
Parameters: propertyId The property identifier. state The state of the property.
Throws: XMLConfigurationException Thrown when a property is not recognized or cannot be set.