|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SchemaReader
This interface describes a collection of methods that enable conversion of a SchemaImpl document (in XML, following the SchemaImpl parent described in the SchemaImpl specification) into a SchemaImpl model.
| Nested Class Summary | |
|---|---|
static class |
SchemaReader.FeatureConstants
Constants for the Message Exchange Patterns. |
| Method Summary | |
|---|---|
java.net.URI |
getDocumentBaseURI()
Get the document base URI of the reader. |
java.lang.Object |
getFeature(SchemaReader.FeatureConstants name)
Gets the value of the specified feature. |
java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> |
getFeatures()
Gets all features. |
Schema |
read(org.w3c.dom.Document document)
Read the XMLSchema definition accessible via the specified DOM Document, and bind it into a Schema object. |
Schema |
read(org.xml.sax.InputSource inputSource)
Read the XMLSchema definition accessible via the specified InputSource, and bind it into a Schema object. |
Schema |
read(java.net.URL schemaURL)
Read the XMLSchema definition available at the location identified by the specified URL, and bind it into a Schema object. |
Schema |
readSchema(org.w3c.dom.Document document)
Deprecated. Use read(Document). |
Schema |
readSchema(java.net.URI schemaURI)
Deprecated. Use #readSchema(URL). |
Schema |
readSchema(java.net.URI schemaUri,
org.xml.sax.InputSource source)
Deprecated. |
void |
setDocumentBaseURI(java.net.URI documentBaseURI)
Set the document base URI of the reader to be able to resolve imported parts. |
void |
setFeature(SchemaReader.FeatureConstants name,
java.lang.Object value)
Sets the specified feature to the specified value. |
void |
setFeatures(java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features)
Set the specified features. |
| Method Detail |
|---|
void setFeature(SchemaReader.FeatureConstants name,
java.lang.Object value)
throws java.lang.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.
java.lang.IllegalArgumentException - if the feature name is not recognized.#getFeature(String)void setFeatures(java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features)
setFeature(FeatureConstants, Object) for more information on
available features.
features - Set of features to set.java.lang.Object getFeature(SchemaReader.FeatureConstants name)
name - the name of the feature to get the value of.
java.lang.IllegalArgumentException - if the feature name is not recognized.#setFeature(String, boolean)java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> getFeatures()
#setFeature(String, boolean)
@Deprecated
Schema readSchema(java.net.URI schemaURI)
throws SchemaException
#readSchema(URL).
schemaURI - an URI (can be a filename or URL) pointing to a XMLSchema
definition.
SchemaException
Schema read(java.net.URL schemaURL)
throws SchemaException,
java.net.URISyntaxException,
java.io.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
XMLSchema
java.net.URISyntaxException - If the URL is not formatted strictly according to to RFC2396
and cannot be converted to a URI.
java.io.IOException - An I/O error occurs openning the URL stream.
Schema read(org.w3c.dom.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
XMLSchema
@Deprecated
Schema readSchema(org.w3c.dom.Document document)
throws SchemaException
read(Document).
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
XMLSchema
@Deprecated
Schema readSchema(java.net.URI schemaUri,
org.xml.sax.InputSource source)
throws SchemaException
SchemaException
Schema read(org.xml.sax.InputSource inputSource)
throws SchemaException,
java.net.URISyntaxException,
java.net.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
XMLSchema
java.net.URISyntaxException - If the system identifier URL is not formatted strictly
according to to RFC2396 and cannot be converted to a URI.
java.net.MalformedURLException - The system identifier URL is not a well-formed URLvoid setDocumentBaseURI(java.net.URI documentBaseURI)
documentBaseURI - java.net.URI getDocumentBaseURI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||