com.ebmwebsourcing.agreement.definition.impl
Class WSAgreementReaderImpl

java.lang.Object
  extended by com.ebmwebsourcing.agreement.definition.impl.WSAgreementReaderImpl
All Implemented Interfaces:
WSAgreementReader

public class WSAgreementReaderImpl
extends java.lang.Object
implements WSAgreementReader

Author:
Nicolas Salatge - eBM WebSourcing

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.ebmwebsourcing.agreement.definition.api.WSAgreementReader
WSAgreementReader.FeatureConstants
 
Constructor Summary
WSAgreementReaderImpl()
           
 
Method Summary
 java.lang.Object getFeature(WSAgreementReader.FeatureConstants name)
          Gets the value of the specified feature.
 java.util.Map<WSAgreementReader.FeatureConstants,java.lang.Object> getFeatures()
          Gets all features.
static javax.xml.bind.JAXBContext getJaxbContext()
           
static javax.xml.bind.Unmarshaller getUnMarshaller()
          Get the unmarshaller instance.
 Agreement readAgreement(org.w3c.dom.Document document)
          Read the specified SchemaImpl document into a SchemaImpl definition.
 Agreement readAgreement(java.net.URI uri)
          Read the SchemaImpl document accessible via the specified URI into a SchemaImpl definition.
 Agreement readAgreement(java.net.URI uri, org.xml.sax.InputSource input)
          Read a SchemaImpl document into a SchemaImpl definition.
 void setFeature(WSAgreementReader.FeatureConstants name, java.lang.Object value)
          Sets the specified feature to the specified value.
 void setFeatures(java.util.Map<WSAgreementReader.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

WSAgreementReaderImpl

public WSAgreementReaderImpl()
Method Detail

getUnMarshaller

public static javax.xml.bind.Unmarshaller getUnMarshaller()
                                                   throws WSAgreementException
Get the unmarshaller instance.

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

getJaxbContext

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

readAgreement

public Agreement readAgreement(java.net.URI uri)
                        throws WSAgreementException
Description copied from interface: WSAgreementReader
Read the SchemaImpl document accessible via the specified URI into a SchemaImpl definition.

Specified by:
readAgreement in interface WSAgreementReader
Returns:
the definition.
Throws:
WSAgreementException

readAgreement

public Agreement readAgreement(org.w3c.dom.Document document)
                        throws WSAgreementException
Description copied from interface: WSAgreementReader
Read the specified SchemaImpl document into a SchemaImpl definition.

Specified by:
readAgreement in interface WSAgreementReader
Returns:
the definition described in the document.
Throws:
WSAgreementException

readAgreement

public Agreement readAgreement(java.net.URI uri,
                               org.xml.sax.InputSource input)
                        throws WSAgreementException
Description copied from interface: WSAgreementReader
Read a SchemaImpl document into a SchemaImpl definition.

Specified by:
readAgreement in interface WSAgreementReader
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:
WSAgreementException

setFeature

public void setFeature(WSAgreementReader.FeatureConstants name,
                       java.lang.Object value)
                throws java.lang.IllegalArgumentException
Description copied from interface: WSAgreementReader
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 WSAgreementReader
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(WSAgreementReader.FeatureConstants name)
                            throws java.lang.IllegalArgumentException
Description copied from interface: WSAgreementReader
Gets the value of the specified feature.

Specified by:
getFeature in interface WSAgreementReader
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<WSAgreementReader.FeatureConstants,java.lang.Object> getFeatures()
Description copied from interface: WSAgreementReader
Gets all features.

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

setFeatures

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


Copyright © 2009 eBM Websourcing. All Rights Reserved.