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.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | ACCESS_EXTERNAL_DTD
Property identifier: access to external dtd |
| public static final String | ACCESS_EXTERNAL_SCHEMA
Property identifier: access to external schema |
| protected static final String | ALLOW_JAVA_ENCODINGS
Feature identifier: allow java encodings to be recognized when parsing schema docs. |
| protected static final String | |
| protected static final String | CONTINUE_AFTER_FATAL_ERROR
Feature identifier: continue after fatal error. |
| protected static final String | DISALLOW_DOCTYPE
Feature: disallow doctype |
| protected static final String | |
| public static final String | ENTITY_RESOLVER
Property identifier: entity resolver. |
| public static final String | ERROR_HANDLER
Property identifier: error handler. |
| public static final String | ERROR_REPORTER
Property identifier: error reporter. |
| private String | |
| private CMBuilder | |
| private XSDeclarationPool | |
| private XMLEntityManager | |
| private DOMErrorHandlerWrapper | fErrorHandler
DOM L3 error handler |
| private XMLErrorReporter | |
| private String | |
| private String | |
| private XSGrammarBucket | |
| private XMLGrammarPool | |
| private boolean | |
| private WeakHashMap | |
| private boolean | |
| private Object | |
| private final ParserConfigurationSettings | |
| private Locale | |
| private final CMNodeFactory | |
| private DOMStringList | |
| private DOMEntityResolverWrapper | fResourceResolver
DOM L3 resource resolver |
| private XSDHandler | |
| private boolean | |
| private SubstitutionGroupHandler | |
| private XMLEntityResolver | |
| private XSDDescription | |
| protected static final String | GENERATE_SYNTHETIC_ANNOTATIONS
Feature: generate synthetic annotations |
| protected static final String | HONOUR_ALL_SCHEMALOCATIONS
Feature identifier: honour all schemaLocations |
| protected static final String | JAXP_SCHEMA_SOURCE
Property identifier: JAXP schema source. |
| protected static final String | LOCALE
Property identifier: locale. |
| protected static final String | NAMESPACE_GROWTH
Feature identifier: namespace growth |
| protected static final String | |
| protected static final String | |
| private static final String[] | |
| private static final String[] | |
| protected static final String | SCHEMA_DV_FACTORY
Property identifier: Schema DV Factory |
| protected static final String | SCHEMA_FULL_CHECKING
Feature identifier: schema full checking |
| protected static final String | SCHEMA_LOCATION
Property identifier: schema location. |
| protected static final String | SCHEMA_NONS_LOCATION
Property identifier: no namespace schema location. |
| protected static final String | |
| protected static final String | STANDARD_URI_CONFORMANT_FEATURE
Feature identifier: standard uri conformant feature. |
| public static final String | SYMBOL_TABLE
Property identifier: symbol table. |
| protected static final String | TOLERATE_DUPLICATES
Feature identifier: tolerate duplicates |
| protected static final String | VALIDATE_ANNOTATIONS
Feature identifier: validate annotations. |
| private static final String | XML_SECURITY_PROPERTY_MANAGER
Property identifier: Security property manager. |
| public static final String | XMLGRAMMAR_POOL
Property identifier: grammar pool. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv | XMLSchemaLoader(XMLErrorReporter errorReporter, XSGrammarBucket grammarBucket, SubstitutionGroupHandler sHandler, CMBuilder builder)
This constractor is used by the XMLSchemaValidator. |
| pack-priv | XMLSchemaLoader(SymbolTable symbolTable, XMLErrorReporter errorReporter, XMLEntityManager entityResolver, XSGrammarBucket grammarBucket, SubstitutionGroupHandler sHandler, CMBuilder builder)
|
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canSetParameter(String name, Object value)
Implements org. Check if setting a parameter to a specific value is supported. |
| pack-priv XMLInputSource | |
| public DOMConfiguration | getConfig()
Implements com. The configuration of a document. |
| public XMLEntityResolver | getEntityResolver()
Implements com. Returns the registered entity resolver. |
| public XMLErrorHandler | getErrorHandler()
Implements com. Returns the registered error handler. |
| public boolean | getFeature(String
The feature identifier. featureId)Implements com. Returns the state of a feature. |
| public Boolean | getFeatureDefault(String featureId)
Implements com. Returns the default state for a feature, or null if this component does not want to report a default value for this feature. |
| public XSElementDecl | |
| public Locale | getLocale()
Implements com. Return the Locale the XMLGrammarLoader is using. |
| public Object | getParameter(String name)
Implements org. Return the value of a parameter if known. |
| public DOMStringList | getParameterNames()
Implements org. The list of the parameters supported by this
|
| public Object | getProperty(String
The property identifier. propertyId)Implements com. Returns the state of a property. |
| public Object | getPropertyDefault(String propertyId)
Implements com. Returns the default state for a property, or null if this component does not want to report a default value for this property. |
| public String[] | getRecognizedFeatures()
Implements com. Returns a list of feature identifiers that are recognized by this XMLGrammarLoader. |
| public String[] | getRecognizedProperties()
Implements com. Returns a list of property identifiers that are recognized by this XMLGrammarLoader. |
| private void | |
| public XSModel | load(LSInput is)
Implements com. Parse an XML Schema document from a resource identified by a
|
| public void | loadGrammar(XMLInputSource[]
the locations of the entity which forms
the staring point of the grammars to be constructed source)Returns a Grammar object by parsing the contents of the entities pointed to by sources. |
| public Grammar | loadGrammar(XMLInputSource
the location of the entity which forms
the starting point of the grammar to be constructed. source)Implements com. Returns a Grammar object by parsing the contents of the entity pointed to by source. |
| public XSModel | loadInputList(LSInputList is)
Implements com. Parses the content of XML Schema documents specified as a list of
|
| pack-priv SchemaGrammar | Returns: An XML Schema grammarThis method is called either from XMLGrammarLoader.loadGrammar or from XMLSchemaValidator. |
| public XSModel | loadURI(String uri)
Implements com. Parse an XML Schema document from a location identified by a URI reference. |
| public XSModel | loadURIList(StringList uriList)
Implements com. Parses the content of XML Schema documents specified as the list of URI references. |
| public static void | processExternalHints(String sl, String nsl, Map<String, XMLSchemaLoader.
|
| private void | processJAXPSchemaSource(Map<String, XMLSchemaLoader.
Translate the various JAXP SchemaSource property types to XNI XMLInputSource. |
| pack-priv void | |
| public void | reset(XMLComponentManager componentManager)
Implements com. Resets the component. |
| public static XMLInputSource | Returns: the XMLInputSourceThis method tries to resolve location of the given schema. |
| private static XMLInputSource | |
| public void | setEntityResolver(XMLEntityResolver
The new entity resolver. entityResolver)Implements com. Sets the entity resolver. |
| public void | setErrorHandler(XMLErrorHandler
The error handler. errorHandler)Implements com. Sets the error handler. |
| public void | setFeature(String
The feature identifier. featureId, boolean The state of the feature. state)Implements com. Sets the state of a feature. |
| public void | setLocale(Locale
The locale object to use for localization of messages. locale)Implements com. Set the locale to use for messages. |
| public void | setParameter(String name, Object value)
Implements org. Set the value of a parameter. |
| public void | setProperty(String
The property identifier. propertyId, Object The state of the property. state)Implements com. Sets the state of a property. |
| public static boolean | tokenizeSchemaLocationStr(String schemaStr, Map<String, XMLSchemaLoader.
|
| private XMLInputSource |
| ACCESS_EXTERNAL_DTD | back to summary |
|---|---|
| public static final String ACCESS_EXTERNAL_DTD Property identifier: access to external dtd | |
| ACCESS_EXTERNAL_SCHEMA | back to summary |
|---|---|
| public static final String ACCESS_EXTERNAL_SCHEMA Property identifier: access to external schema | |
| ALLOW_JAVA_ENCODINGS | back to summary |
|---|---|
| protected static final String ALLOW_JAVA_ENCODINGS Feature identifier: allow java encodings to be recognized when parsing schema docs. | |
| AUGMENT_PSVI | back to summary |
|---|---|
| protected static final String AUGMENT_PSVI | |
| CONTINUE_AFTER_FATAL_ERROR | back to summary |
|---|---|
| protected static final String CONTINUE_AFTER_FATAL_ERROR Feature identifier: continue after fatal error. | |
| DISALLOW_DOCTYPE | back to summary |
|---|---|
| protected static final String DISALLOW_DOCTYPE Feature: disallow doctype | |
| ENTITY_MANAGER | back to summary |
|---|---|
| protected static final String ENTITY_MANAGER | |
| ENTITY_RESOLVER | back to summary |
|---|---|
| public static final String ENTITY_RESOLVER Property identifier: entity resolver. | |
| ERROR_HANDLER | back to summary |
|---|---|
| public static final String ERROR_HANDLER Property identifier: error handler. | |
| ERROR_REPORTER | back to summary |
|---|---|
| public static final String ERROR_REPORTER Property identifier: error reporter. | |
| faccessExternalSchema | back to summary |
|---|---|
| private String faccessExternalSchema | |
| fCMBuilder | back to summary |
|---|---|
| private CMBuilder fCMBuilder | |
| fDeclPool | back to summary |
|---|---|
| private XSDeclarationPool fDeclPool | |
| fEntityManager | back to summary |
|---|---|
| private XMLEntityManager fEntityManager | |
| fErrorHandler | back to summary |
|---|---|
| private DOMErrorHandlerWrapper fErrorHandler DOM L3 error handler | |
| fErrorReporter | back to summary |
|---|---|
| private XMLErrorReporter fErrorReporter | |
| fExternalNoNSSchema | back to summary |
|---|---|
| private String fExternalNoNSSchema | |
| fExternalSchemas | back to summary |
|---|---|
| private String fExternalSchemas | |
| fGrammarBucket | back to summary |
|---|---|
| private XSGrammarBucket fGrammarBucket | |
| fGrammarPool | back to summary |
|---|---|
| private XMLGrammarPool fGrammarPool | |
| fIsCheckedFully | back to summary |
|---|---|
| private boolean fIsCheckedFully | |
| fJAXPCache | back to summary |
|---|---|
| private WeakHashMap<Object, SchemaGrammar> fJAXPCache | |
| fJAXPProcessed | back to summary |
|---|---|
| private boolean fJAXPProcessed | |
| fJAXPSource | back to summary |
|---|---|
| private Object fJAXPSource | |
| fLoaderConfig | back to summary |
|---|---|
| private final ParserConfigurationSettings fLoaderConfig | |
| fLocale | back to summary |
|---|---|
| private Locale fLocale | |
| fNodeFactory | back to summary |
|---|---|
| private final CMNodeFactory fNodeFactory | |
| fRecognizedParameters | back to summary |
|---|---|
| private DOMStringList fRecognizedParameters | |
| fResourceResolver | back to summary |
|---|---|
| private DOMEntityResolverWrapper fResourceResolver DOM L3 resource resolver | |
| fSchemaHandler | back to summary |
|---|---|
| private XSDHandler fSchemaHandler | |
| fSettingsChanged | back to summary |
|---|---|
| private boolean fSettingsChanged | |
| fSubGroupHandler | back to summary |
|---|---|
| private SubstitutionGroupHandler fSubGroupHandler | |
| fUserEntityResolver | back to summary |
|---|---|
| private XMLEntityResolver fUserEntityResolver | |
| fXSDDescription | back to summary |
|---|---|
| private XSDDescription fXSDDescription | |
| GENERATE_SYNTHETIC_ANNOTATIONS | back to summary |
|---|---|
| protected static final String GENERATE_SYNTHETIC_ANNOTATIONS Feature: generate synthetic annotations | |
| HONOUR_ALL_SCHEMALOCATIONS | back to summary |
|---|---|
| protected static final String HONOUR_ALL_SCHEMALOCATIONS Feature identifier: honour all schemaLocations | |
| JAXP_SCHEMA_SOURCE | back to summary |
|---|---|
| protected static final String JAXP_SCHEMA_SOURCE Property identifier: JAXP schema source. | |
| LOCALE | back to summary |
|---|---|
| protected static final String LOCALE Property identifier: locale. | |
| NAMESPACE_GROWTH | back to summary |
|---|---|
| protected static final String NAMESPACE_GROWTH Feature identifier: namespace growth | |
| OVERRIDE_PARSER | back to summary |
|---|---|
| protected static final String OVERRIDE_PARSER | |
| PARSER_SETTINGS | back to summary |
|---|---|
| protected static final String PARSER_SETTINGS | |
| RECOGNIZED_FEATURES | back to summary |
|---|---|
| private static final String[] RECOGNIZED_FEATURES | |
| RECOGNIZED_PROPERTIES | back to summary |
|---|---|
| private static final String[] RECOGNIZED_PROPERTIES | |
| SCHEMA_DV_FACTORY | back to summary |
|---|---|
| protected static final String SCHEMA_DV_FACTORY Property identifier: Schema DV Factory | |
| SCHEMA_FULL_CHECKING | back to summary |
|---|---|
| protected static final String SCHEMA_FULL_CHECKING Feature identifier: schema full checking | |
| SCHEMA_LOCATION | back to summary |
|---|---|
| protected static final String SCHEMA_LOCATION Property identifier: schema location. | |
| SCHEMA_NONS_LOCATION | back to summary |
|---|---|
| protected static final String SCHEMA_NONS_LOCATION Property identifier: no namespace schema location. | |
| SECURITY_MANAGER | back to summary |
|---|---|
| protected static final String SECURITY_MANAGER | |
| STANDARD_URI_CONFORMANT_FEATURE | back to summary |
|---|---|
| protected static final String STANDARD_URI_CONFORMANT_FEATURE Feature identifier: standard uri conformant feature. | |
| SYMBOL_TABLE | back to summary |
|---|---|
| public static final String SYMBOL_TABLE Property identifier: symbol table. | |
| TOLERATE_DUPLICATES | back to summary |
|---|---|
| protected static final String TOLERATE_DUPLICATES Feature identifier: tolerate duplicates | |
| VALIDATE_ANNOTATIONS | back to summary |
|---|---|
| protected static final String VALIDATE_ANNOTATIONS Feature identifier: validate annotations. | |
| XML_SECURITY_PROPERTY_MANAGER | back to summary |
|---|---|
| private static final String XML_SECURITY_PROPERTY_MANAGER Property identifier: Security property manager. | |
| XMLGRAMMAR_POOL | back to summary |
|---|---|
| public static final String XMLGRAMMAR_POOL Property identifier: grammar pool. | |
| XMLSchemaLoader | back to summary |
|---|---|
| public XMLSchemaLoader() | |
| XMLSchemaLoader | back to summary |
|---|---|
| public XMLSchemaLoader(SymbolTable symbolTable) | |
| XMLSchemaLoader | back to summary |
|---|---|
| pack-priv XMLSchemaLoader(XMLErrorReporter errorReporter, XSGrammarBucket grammarBucket, SubstitutionGroupHandler sHandler, CMBuilder builder) This constractor is used by the XMLSchemaValidator. Additional properties, i.e. XMLEntityManager, will be passed during reset(XMLComponentManager). | |
| XMLSchemaLoader | back to summary |
|---|---|
| pack-priv XMLSchemaLoader(SymbolTable symbolTable, XMLErrorReporter errorReporter, XMLEntityManager entityResolver, XSGrammarBucket grammarBucket, SubstitutionGroupHandler sHandler, CMBuilder builder) | |
| canSetParameter | back to summary |
|---|---|
| public boolean canSetParameter(String name, Object value) Implements org. Doc from org. Check if setting a parameter to a specific value is supported. | |
| dom2xmlInputSource | back to summary |
|---|---|
| pack-priv XMLInputSource dom2xmlInputSource(LSInput is) | |
| getConfig | back to summary |
|---|---|
| public DOMConfiguration getConfig() Implements com. Doc from com. The configuration of a document. It maintains a table of recognized
parameters. Using the configuration, it is possible to change the
behavior of the load methods. The configuration may support the
setting of and the retrieval of the following non-boolean parameters
defined on the
| |
| getEntityResolver | back to summary |
|---|---|
| public XMLEntityResolver getEntityResolver() Implements com. Returns the registered entity resolver. | |
| getErrorHandler | back to summary |
|---|---|
| public XMLErrorHandler getErrorHandler() Implements com. Returns the registered error handler. | |
| getFeature | back to summary |
|---|---|
| public boolean getFeature(String featureId) throws XMLConfigurationException Implements com. Returns the state of a feature.
| |
| getFeatureDefault | back to summary |
|---|---|
| public Boolean getFeatureDefault(String featureId) Implements com. Doc from com. Returns the default state for a feature, or null if this component does not want to report a default value for this feature. | |
| getGlobalElementDecl | back to summary |
|---|---|
| public XSElementDecl getGlobalElementDecl(QName element) Implements com. | |
| getLocale | back to summary |
|---|---|
| public Locale getLocale() Implements com. Return the Locale the XMLGrammarLoader is using. | |
| getParameter | back to summary |
|---|---|
| public Object getParameter(String name) throws DOMException Implements org. Doc from org. Return the value of a parameter if known.
| |
| getParameterNames | back to summary |
|---|---|
| public DOMStringList getParameterNames() Implements org. Doc from org. The list of the parameters supported by this
| |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String propertyId) throws XMLConfigurationException Implements com. Returns the state of a property.
| |
| getPropertyDefault | back to summary |
|---|---|
| public Object getPropertyDefault(String propertyId) Implements com. Doc from com. Returns the default state for a property, or null if this component does not want to report a default value for this property. | |
| getRecognizedFeatures | back to summary |
|---|---|
| public String[] getRecognizedFeatures() Implements com. Returns a list of feature identifiers that are recognized by this XMLGrammarLoader. This method may return null if no features are recognized. | |
| getRecognizedProperties | back to summary |
|---|---|
| public String[] getRecognizedProperties() Implements com. Returns a list of property identifiers that are recognized by this XMLGrammarLoader. This method may return null if no properties are recognized. | |
| initGrammarBucket | back to summary |
|---|---|
| private void initGrammarBucket() | |
| load | back to summary |
|---|---|
| public XSModel load(LSInput is) Implements com. Doc from com. Parse an XML Schema document from a resource identified by a
| |
| loadGrammar | back to summary |
|---|---|
| public void loadGrammar(XMLInputSource[] source) throws IOException, XNIException Returns a Grammar object by parsing the contents of the entities pointed to by sources.
| |
| loadGrammar | back to summary |
|---|---|
| public Grammar loadGrammar(XMLInputSource source) throws IOException, XNIException Implements com. Returns a Grammar object by parsing the contents of the entity pointed to by source.
| |
| loadInputList | back to summary |
|---|---|
| public XSModel loadInputList(LSInputList is) Implements com. Doc from com. Parses the content of XML Schema documents specified as a list of
| |
| loadSchema | back to summary |
|---|---|
| pack-priv SchemaGrammar loadSchema(XSDDescription desc, XMLInputSource source, Map<String, XMLSchemaLoader. This method is called either from XMLGrammarLoader.loadGrammar or from XMLSchemaValidator. Note in either case, the EntityManager (or EntityResolvers) are not going to be invoked to resolve the location of the schema in XSDDescription
| |
| loadURI | back to summary |
|---|---|
| public XSModel loadURI(String uri) Implements com. Doc from com. Parse an XML Schema document from a location identified by a URI reference. If the URI contains a fragment identifier, the behavior is not defined by this specification. | |
| loadURIList | back to summary |
|---|---|
| public XSModel loadURIList(StringList uriList) Implements com. Doc from com. Parses the content of XML Schema documents specified as the list of URI references. If the URI contains a fragment identifier, the behavior is not defined by this specification. | |
| processExternalHints | back to summary |
|---|---|
| public static void processExternalHints(String sl, String nsl, Map<String, XMLSchemaLoader. | |
| processJAXPSchemaSource | back to summary |
|---|---|
| private void processJAXPSchemaSource(Map<String, XMLSchemaLoader. Translate the various JAXP SchemaSource property types to XNI XMLInputSource. Valid types are: String, org.xml.sax.InputSource, InputStream, File, or Object[] of any of previous types. Revisit the JAXP 1.2 spec is less than clear as to whether this property should be available to imported schemas. I have assumed that it should. - NG Note: all JAXP schema files will be checked for full-schema validity if the feature was set up | |
| reportDOMFatalError | back to summary |
|---|---|
| pack-priv void reportDOMFatalError(Exception e) | |
| reset | back to summary |
|---|---|
| public void reset(XMLComponentManager componentManager) throws XMLConfigurationException Implements com. Doc from com. Resets the component. The component can query the component manager about any features and properties that affect the operation of the component. | |
| resolveDocument | back to summary |
|---|---|
| public static XMLInputSource resolveDocument(XSDDescription desc, Map<String, XMLSchemaLoader. This method tries to resolve location of the given schema. The loader stores the namespace/location pairs in a map (use "" as the namespace of absent namespace). When resolving an entity, loader first tries to find in the map whether there is a value for that namespace, if so, pass that location value to the user-defined entity resolver.
| |
| saxToXMLInputSource | back to summary |
|---|---|
| private static XMLInputSource saxToXMLInputSource(InputSource sis) | |
| setEntityResolver | back to summary |
|---|---|
| public void setEntityResolver(XMLEntityResolver entityResolver) Implements com. Sets the entity resolver.
| |
| setErrorHandler | back to summary |
|---|---|
| public void setErrorHandler(XMLErrorHandler errorHandler) Implements com. Sets the error handler.
| |
| setFeature | back to summary |
|---|---|
| public void setFeature(String featureId, boolean state) throws XMLConfigurationException Implements com. Sets the state of a feature.
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(Locale locale) Implements com. Set the locale to use for messages.
| |
| setParameter | back to summary |
|---|---|
| public void setParameter(String name, Object value) throws DOMException Implements org. Doc from org. Set the value of a parameter.
| |
| setProperty | back to summary |
|---|---|
| public void setProperty(String propertyId, Object state) throws XMLConfigurationException Implements com. Sets the state of a property.
| |
| tokenizeSchemaLocationStr | back to summary |
|---|---|
| public static boolean tokenizeSchemaLocationStr(String schemaStr, Map<String, XMLSchemaLoader. | |
| xsdToXMLInputSource | back to summary |
|---|---|
| private XMLInputSource xsdToXMLInputSource(Object val) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv int | |
| pack-priv String[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public String | |
| public int | |
| public String[] | |
| public void |
| length | back to summary |
|---|---|
| pack-priv int length | |
| locations | back to summary |
|---|---|
| pack-priv String[] locations | |
| LocationArray | back to summary |
|---|---|
| public LocationArray() | |
| addLocation | back to summary |
|---|---|
| public void addLocation(String location) | |
| getFirstLocation | back to summary |
|---|---|
| public String getFirstLocation() | |
| getLength | back to summary |
|---|---|
| public int getLength() | |
| getLocationArray | back to summary |
|---|---|
| public String[] getLocationArray() | |
| resize | back to summary |
|---|---|
| public void resize(int oldLength, int newLength) | |