|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaReader
org.ow2.easywsdl.schema.impl.SchemaReaderImpl
public class SchemaReaderImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ow2.easywsdl.schema.api.SchemaReader |
|---|
SchemaReader.FeatureConstants |
| Constructor Summary | |
|---|---|
SchemaReaderImpl()
|
|
| 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. |
protected java.util.Map<java.net.URI,AbsItfSchema> |
getImportList()
|
static SchemaJAXBContext |
getJaxbContext()
|
Schema |
read(org.w3c.dom.Document doc)
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. |
protected Schema |
readExternalPart(java.net.URI schemaLocationURI,
java.net.URI baseURI,
java.util.Map<java.net.URI,AbsItfSchema> imports,
boolean deleteImports)
Read an external XML Schema URI according to a base URI. |
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. |
protected void |
setImportList(java.util.Map<java.net.URI,AbsItfSchema> importLists)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SchemaReaderImpl()
throws SchemaException
SchemaException| Method Detail |
|---|
public static SchemaJAXBContext getJaxbContext()
throws SchemaException
SchemaExceptionpublic void setDocumentBaseURI(java.net.URI documentBaseURI)
setDocumentBaseURI in interface SchemaReaderpublic java.net.URI getDocumentBaseURI()
getDocumentBaseURI in interface SchemaReader
public 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.
read in interface SchemaReaderschemaURL - 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.
public 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.
read in interface SchemaReaderinputSource - 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 URL
public Schema read(org.w3c.dom.Document doc)
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.
read in interface SchemaReaderdoc - a DOM Document pointing to a XMLSchema definition.
Schema definition.
SchemaException - An error occurs during the parsing or the binding of the
XMLSchema
protected Schema readExternalPart(java.net.URI schemaLocationURI,
java.net.URI baseURI,
java.util.Map<java.net.URI,AbsItfSchema> imports,
boolean deleteImports)
throws SchemaException,
java.net.MalformedURLException,
java.net.URISyntaxException
readExternalPart in class AbstractSchemaReaderSchemaException
java.net.MalformedURLException - The URL based on the external XSD URI and the current base
URI is a malformed URL.
java.net.URISyntaxException - The URL based on the external XSD URI and the current base
URI is an URL not formatted strictly according to to RFC2396
and cannot be converted to a URI.
public void setFeature(SchemaReader.FeatureConstants name,
java.lang.Object value)
throws java.lang.IllegalArgumentException
SchemaReaderThe 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
setFeature in interface SchemaReadername - 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)
public java.lang.Object getFeature(SchemaReader.FeatureConstants name)
throws java.lang.IllegalArgumentException
SchemaReader
getFeature in interface SchemaReadername - the name of the feature to get the value of.
java.lang.IllegalArgumentException - if the feature name is not recognized.#setFeature(String, boolean)public java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> getFeatures()
SchemaReader
getFeatures in interface SchemaReader#setFeature(String, boolean)public void setFeatures(java.util.Map<SchemaReader.FeatureConstants,java.lang.Object> features)
SchemaReaderSchemaReader.setFeature(FeatureConstants, Object) for more information on
available features.
setFeatures in interface SchemaReaderfeatures - Set of features to set.protected java.util.Map<java.net.URI,AbsItfSchema> getImportList()
getImportList in class AbstractSchemaReaderprotected void setImportList(java.util.Map<java.net.URI,AbsItfSchema> importLists)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||