com.ebmwebsourcing.wsstar.qml.impl
Class WSQMLReaderImpl

java.lang.Object
  extended by com.ebmwebsourcing.wsstar.qml.impl.WSQMLReaderImpl
All Implemented Interfaces:
WSQMLReader

public class WSQMLReaderImpl
extends java.lang.Object
implements WSQMLReader

Author:
Nicolas Salatge - eBM WebSourcing, Le Duc Bao - France Telecom

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ebmwebsourcing.wsstar.qml.api.WSQMLReader
WSQMLReader.FeatureConstants
 
Constructor Summary
WSQMLReaderImpl()
           
 
Method Summary
 java.lang.Object getFeature(WSQMLReader.FeatureConstants name)
          Gets the value of the specified feature.
 java.util.Map<WSQMLReader.FeatureConstants,java.lang.Object> getFeatures()
          Gets all features.
static javax.xml.bind.JAXBContext getJaxbContext()
           
static javax.xml.bind.Unmarshaller getUnMarshaller()
          Get the unmarshaller instance.
 Constraint readConstraint(org.w3c.dom.Document document)
          Read the specified SchemaImpl document into a SchemaImpl definition.
 Constraint readConstraint(java.net.URI uri)
          Read the SchemaImpl document accessible via the specified URI into a SchemaImpl definition.
 Constraint readConstraint(java.net.URI uri, org.xml.sax.InputSource input)
          Read a SchemaImpl document into a SchemaImpl definition.
 EquivalentTo readEquivalentTo(java.net.URI uri)
          Read the EquivalentToImpl document accessible via the specified URI into a EquivalentToImpl definition.
 EquivalentTo readEquivalentTo(java.net.URI uri, org.xml.sax.InputSource input)
          Read a SchemaImpl document into a SchemaImpl definition.
 QOSDimension readQOSDimension(org.w3c.dom.Document document)
          Read the specified SchemaImpl document into a SchemaImpl definition.
 QOSDimension readQOSDimension(java.net.URI uri)
          Read the SchemaImpl document accessible via the specified URI into a SchemaImpl definition.
 QOSDimension readQOSDimension(java.net.URI uri, org.xml.sax.InputSource input)
          Read a SchemaImpl document into a SchemaImpl definition.
 void setFeature(WSQMLReader.FeatureConstants name, java.lang.Object value)
          Sets the specified feature to the specified value.
 void setFeatures(java.util.Map<WSQMLReader.FeatureConstants,java.lang.Object> features)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WSQMLReaderImpl

public WSQMLReaderImpl()
Method Detail

getUnMarshaller

public static javax.xml.bind.Unmarshaller getUnMarshaller()
                                                   throws org.ow2.easywsdl.schema.api.SchemaException
Get the unmarshaller instance.

Returns:
the unmarshaller instance
Throws:
org.ow2.easywsdl.schema.api.SchemaException - The exception raised during the unmarshaller creation.

getJaxbContext

public static javax.xml.bind.JAXBContext getJaxbContext()
Returns:
the jaxbContext

readQOSDimension

public QOSDimension readQOSDimension(java.net.URI uri)
                              throws WSQMLException
Description copied from interface: WSQMLReader
Read the SchemaImpl document accessible via the specified URI into a SchemaImpl definition.

Specified by:
readQOSDimension in interface WSQMLReader
Returns:
the definition.
Throws:
WSQMLException

readQOSDimension

public QOSDimension readQOSDimension(org.w3c.dom.Document document)
                              throws WSQMLException
Description copied from interface: WSQMLReader
Read the specified SchemaImpl document into a SchemaImpl definition.

Specified by:
readQOSDimension in interface WSQMLReader
Returns:
the definition described in the document.
Throws:
WSQMLException

readQOSDimension

public QOSDimension readQOSDimension(java.net.URI uri,
                                     org.xml.sax.InputSource input)
                              throws WSQMLException
Description copied from interface: WSQMLReader
Read a SchemaImpl document into a SchemaImpl definition.

Specified by:
readQOSDimension in interface WSQMLReader
input - an InputSource pointing to the SchemaImpl document, an XML document obeying the SchemaImpl parent.
Returns:
the definition described in the document pointed to by the InputSource.
Throws:
WSQMLException

setFeature

public void setFeature(WSQMLReader.FeatureConstants name,
                       java.lang.Object value)
                throws java.lang.IllegalArgumentException
Description copied from interface: WSQMLReader
Sets the specified feature to the specified value.

The minimum features that must be supported are:

Name Description Default Value
org.ow2.easywsdl.schema.verbose
If set to true, status messages will be displayed.
type: boolean - default value: false
org.ow2.easywsdl.schema.importDocuments
If set to true, imported WSDL documents will be retrieved and processed.
type: boolean - default value: true
org.ow2.easywsdl.schema.pathDirectoryOfImportLocations
If the location is set, imported WSDL documents will be retrieved at this location (Set the importDocuments Features at true).
type: String

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

Specified by:
setFeature in interface WSQMLReader
Parameters:
name - the name of the feature to be set.
value - the value to set the feature to.
Throws:
java.lang.IllegalArgumentException - if the feature name is not recognized.
See Also:
#getFeature(String)

getFeature

public java.lang.Object getFeature(WSQMLReader.FeatureConstants name)
                            throws java.lang.IllegalArgumentException
Description copied from interface: WSQMLReader
Gets the value of the specified feature.

Specified by:
getFeature in interface WSQMLReader
Parameters:
name - the name of the feature to get the value of.
Returns:
the value of feature
Throws:
java.lang.IllegalArgumentException - if the feature name is not recognized.
See Also:
#setFeature(String, boolean)

getFeatures

public java.util.Map<WSQMLReader.FeatureConstants,java.lang.Object> getFeatures()
Description copied from interface: WSQMLReader
Gets all features.

Specified by:
getFeatures in interface WSQMLReader
Returns:
the features
See Also:
#setFeature(String, boolean)

setFeatures

public void setFeatures(java.util.Map<WSQMLReader.FeatureConstants,java.lang.Object> features)

readConstraint

public Constraint readConstraint(java.net.URI uri)
                          throws WSQMLException
Description copied from interface: WSQMLReader
Read the SchemaImpl document accessible via the specified URI into a SchemaImpl definition.

Specified by:
readConstraint in interface WSQMLReader
Returns:
the definition.
Throws:
WSQMLException

readConstraint

public Constraint readConstraint(org.w3c.dom.Document document)
                          throws WSQMLException
Description copied from interface: WSQMLReader
Read the specified SchemaImpl document into a SchemaImpl definition.

Specified by:
readConstraint in interface WSQMLReader
Returns:
the definition described in the document.
Throws:
WSQMLException

readConstraint

public Constraint readConstraint(java.net.URI uri,
                                 org.xml.sax.InputSource input)
                          throws WSQMLException
Description copied from interface: WSQMLReader
Read a SchemaImpl document into a SchemaImpl definition.

Specified by:
readConstraint in interface WSQMLReader
input - an InputSource pointing to the SchemaImpl document, an XML document obeying the SchemaImpl parent.
Returns:
the definition described in the document pointed to by the InputSource.
Throws:
WSQMLException

readEquivalentTo

public EquivalentTo readEquivalentTo(java.net.URI uri)
                              throws WSQMLException
Description copied from interface: WSQMLReader
Read the EquivalentToImpl document accessible via the specified URI into a EquivalentToImpl definition.

Specified by:
readEquivalentTo in interface WSQMLReader
Returns:
the definition.
Throws:
WSQMLException

readEquivalentTo

public EquivalentTo readEquivalentTo(java.net.URI uri,
                                     org.xml.sax.InputSource input)
                              throws WSQMLException
Description copied from interface: WSQMLReader
Read a SchemaImpl document into a SchemaImpl definition.

Specified by:
readEquivalentTo in interface WSQMLReader
Returns:
the definition described in the document pointed to by the InputSource.
Throws:
WSQMLException


Copyright © 2009 eBM Websourcing. All Rights Reserved.