org.ow2.easywsdl.wsdl.impl.wsdl11
Class ServiceImpl

java.lang.Object
  extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl<E>
      extended by org.ow2.easywsdl.schema.api.abstractElmt.AbstractXMLElementImpl<E>
          extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl<E>
              extended by org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractServiceImpl<TService,InterfaceType,Endpoint>
                  extended by org.ow2.easywsdl.wsdl.impl.wsdl11.ServiceImpl
All Implemented Interfaces:
java.io.Serializable, org.ow2.easywsdl.schema.api.SchemaElement, org.ow2.easywsdl.schema.api.XMLElement, AbsItfService<InterfaceType,Endpoint>, Service, WSDLElement

public class ServiceImpl
extends AbstractServiceImpl<TService,InterfaceType,Endpoint>
implements Service

Author:
Nicolas Salatge - eBM WebSourcing
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractServiceImpl
desc, endpoints
 
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
documentation, model, parent
 
Constructor Summary
ServiceImpl(TService service, DescriptionImpl desc)
           
 
Method Summary
 void addEndpoint(Endpoint endpoint)
          Add a endpoint to this service.
 Endpoint createEndpoint()
          create the specified endpoint.
 InterfaceType getInterface()
           Get interface.
 javax.xml.namespace.QName getQName()
          Get the name of this service.
 Endpoint removeEndpoint(java.lang.String name)
          Remove the specified endpoint.
static TService replaceDOMElementByTService(WSDLElement parent, org.w3c.dom.Element childToReplace, WSDLReaderImpl reader)
           
 void setInterface(InterfaceType itf)
           
 void setQName(javax.xml.namespace.QName name)
          Set the name of this service.
 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractServiceImpl
getDescription, getEndpoint, getEndpoints
 
Methods inherited from class org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl
addOtherElements, createDocumentation, getDocumentation, getModel, getOtherAttributes, getOtherElements, setDocumentation, toString
 
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl
equals, getParent, getSchema, getTopParent, hashCode, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ow2.easywsdl.wsdl.api.abstractItf.AbsItfService
getEndpoint, getEndpoints
 
Methods inherited from interface org.ow2.easywsdl.schema.api.XMLElement
addOtherElements, getOtherElements
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, equals, getDocumentation, getOtherAttributes, hashCode, setDocumentation
 

Constructor Detail

ServiceImpl

public ServiceImpl(TService service,
                   DescriptionImpl desc)
Method Detail

addEndpoint

public void addEndpoint(Endpoint endpoint)
Description copied from interface: AbsItfService
Add a endpoint to this service.

Specified by:
addEndpoint in interface AbsItfService<InterfaceType,Endpoint>
Overrides:
addEndpoint in class AbstractServiceImpl<TService,InterfaceType,Endpoint>
Parameters:
endpoint - the endpoint to be added

getQName

public javax.xml.namespace.QName getQName()
Description copied from interface: AbsItfService
Get the name of this service.

Specified by:
getQName in interface AbsItfService<InterfaceType,Endpoint>
Returns:
the service name

removeEndpoint

public Endpoint removeEndpoint(java.lang.String name)
Description copied from interface: AbsItfService
Remove the specified endpoint.

Specified by:
removeEndpoint in interface AbsItfService<InterfaceType,Endpoint>
Parameters:
name - the name of the endpoint to be removed.
Returns:
the endpoint which was removed.

setQName

public void setQName(javax.xml.namespace.QName name)
Description copied from interface: AbsItfService
Set the name of this service.

Specified by:
setQName in interface AbsItfService<InterfaceType,Endpoint>
Parameters:
name - the desired name

getInterface

public InterfaceType getInterface()
                           throws WSDLException

Get interface.

In case of WSDL 2.0, the returned interface is defined by the XPath expression '/description/service@interface'.

In case of WSDL 1.1, according to WSDL 1.1 specifications, if all service endpoints share the same port type, the returned interface is defined by the endpoints port type, otherwise an exception WSDLException is thrown.

Specified by:
getInterface in interface AbsItfService<InterfaceType,Endpoint>
Throws:
WSDLException

createEndpoint

public Endpoint createEndpoint()
Description copied from interface: AbsItfService
create the specified endpoint.

Specified by:
createEndpoint in interface AbsItfService<InterfaceType,Endpoint>
Returns:
the corresponding endpoint, or null if there wasn't any matching endpoint

setInterface

public void setInterface(InterfaceType itf)
Specified by:
setInterface in interface AbsItfService<InterfaceType,Endpoint>

replaceDOMElementByTService

public static TService replaceDOMElementByTService(WSDLElement parent,
                                                   org.w3c.dom.Element childToReplace,
                                                   WSDLReaderImpl reader)
                                            throws WSDLException
Throws:
WSDLException


Copyright © 2008-2010 Petals Link (previously EBM WebSourcing). All Rights Reserved.