public interface SchemaReader
| Modifier and Type | Interface and Description |
|---|---|
static class |
SchemaReader.FeatureConstants
Constants for the Message Exchange Patterns.
|
| Modifier and Type | Method and Description |
|---|---|
URI |
getDocumentBaseURI()
Get the document base URI of the reader.
|
Object |
getFeature(SchemaReader.FeatureConstants name)
Gets the value of the specified feature.
|
Map<SchemaReader.FeatureConstants,Object> |
getFeatures()
Gets all features.
|
Schema |
read(Document document)
|
Schema |
read(InputSource inputSource)
Read the XMLSchema definition accessible via the specified
InputSource, and bind it into a Schema object. |
Schema |
read(URL schemaURL)
Read the XMLSchema definition available at the location identified by the
specified URL, and bind it into a
Schema object. |
void |
setDocumentBaseURI(URI documentBaseURI)
Set the document base URI of the reader to be able to resolve imported
parts.
|
void |
setFeature(SchemaReader.FeatureConstants name,
Object value)
Sets the specified feature to the specified value.
|
void |
setFeatures(Map<SchemaReader.FeatureConstants,Object> features)
Set the specified features.
|
void setFeature(SchemaReader.FeatureConstants name, Object value) throws IllegalArgumentException
The minimum features that must be supported are:
| Name | Description | Default Value |
|---|---|---|
| If set to true, status messages will be displayed. | ||
| If set to true, imported WSDL documents will be retrieved and processed. | ||
|
|
If the location is set, imported WSDL documents will be retrieved at this location (Set the importDocuments Features at true). |
All feature names must be fully-qualified, Java package style. All names starting with com.ebmwebsourcing. are reserved for features defined by the specification. It is recommended that implementation- specific features be fully-qualified to match the package name of that implementation. For example: com.abc.featureName
name - the name of the feature to be set.value - the value to set the feature to.IllegalArgumentException - if the feature name is not recognized.#getFeature(String)void setFeatures(Map<SchemaReader.FeatureConstants,Object> features)
setFeature(FeatureConstants, Object) for more information on
available features.features - Set of features to set.Object getFeature(SchemaReader.FeatureConstants name)
name - the name of the feature to get the value of.IllegalArgumentException - if the feature name is not recognized.#setFeature(String, boolean)Map<SchemaReader.FeatureConstants,Object> getFeatures()
#setFeature(String, boolean)Schema read(URL schemaURL) throws SchemaException, URISyntaxException, IOException
Read the XMLSchema definition available at the location identified by the
specified URL, and bind it into a Schema object.
Note: all relative URIs are resolved according to the specified URL.
schemaURL - an URL pointing to a XMLSchema definition.Schema definition.SchemaException - An error occurs during the parsing or the binding of the
XMLSchemaURISyntaxException - If the URL is not formatted strictly according to to RFC2396
and cannot be converted to a URI.IOException - An I/O error occurs openning the URL stream.Schema read(Document document) throws SchemaException
Read the XMLSchema definition accessible via the specified DOM
Document, and bind it into a Schema object.
Note: To be able to resolve relative URIs, the Document
base URI must be set.
document - a DOM Document pointing to a XMLSchema definition.Schema definition.SchemaException - An error occurs during the parsing or the binding of the
XMLSchemaSchema read(InputSource inputSource) throws SchemaException, URISyntaxException, MalformedURLException
Read the XMLSchema definition accessible via the specified
InputSource, and bind it into a Schema object.
Note: To be able to resolve relative URIs, the InputSource
system identifier must be set.
inputSource - an InputSource pointing to a XMLSchema definition.Schema definition.SchemaException - An error occurs during the parsing or the binding of the
XMLSchemaURISyntaxException - If the system identifier URL is not formatted strictly
according to to RFC2396 and cannot be converted to a URI.MalformedURLException - The system identifier URL is not a well-formed URLvoid setDocumentBaseURI(URI documentBaseURI)
documentBaseURI - URI getDocumentBaseURI()
Copyright © 2008-2015 Petals Link (previously EBM WebSourcing). All Rights Reserved.