org.ow2.easywsdl.wsdl.api.abstractItf
Interface AbsItfService<I extends AbsItfInterfaceType,E extends AbsItfEndpoint>

All Superinterfaces:
org.ow2.easywsdl.schema.api.SchemaElement, java.io.Serializable, WSDLElement, org.ow2.easywsdl.schema.api.XMLElement
All Known Subinterfaces:
Service
All Known Implementing Classes:
AbstractServiceImpl, ServiceImpl, ServiceImpl

public interface AbsItfService<I extends AbsItfInterfaceType,E extends AbsItfEndpoint>
extends WSDLElement

This interface represents a service, which groups related endpoints to provide some functionality.

Author:
Nicolas Salatge - eBM WebSourcing

Method Summary
 void addEndpoint(E endpoint)
          Add a endpoint to this service.
 E createEndpoint()
          create the specified endpoint.
 E getEndpoint(java.lang.String name)
          Get the specified endpoint.
 java.util.List<E> getEndpoints()
          Get all the endpoints defined here.
 I getInterface()
           Get interface.
 javax.xml.namespace.QName getQName()
          Get the name of this service.
 E removeEndpoint(java.lang.String name)
          Remove the specified endpoint.
 void setInterface(I itf)
           
 void setQName(javax.xml.namespace.QName name)
          Set the name of this service.
 
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
 

Method Detail

setQName

void setQName(javax.xml.namespace.QName name)
Set the name of this service.

Parameters:
name - the desired name

getQName

javax.xml.namespace.QName getQName()
Get the name of this service.

Returns:
the service name

createEndpoint

E createEndpoint()
create the specified endpoint.

Returns:
the corresponding endpoint, or null if there wasn't any matching endpoint

addEndpoint

void addEndpoint(E endpoint)
Add a endpoint to this service.

Parameters:
endpoint - the endpoint to be added

getEndpoint

E getEndpoint(java.lang.String name)
Get the specified endpoint.

Parameters:
name - the name of the desired endpoint.
Returns:
the corresponding endpoint, or null if there wasn't any matching endpoint

removeEndpoint

E removeEndpoint(java.lang.String name)
Remove the specified endpoint.

Parameters:
name - the name of the endpoint to be removed.
Returns:
the endpoint which was removed.

getEndpoints

java.util.List<E> getEndpoints()
Get all the endpoints defined here.


getInterface

I 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.

Throws:
WSDLException

setInterface

void setInterface(I itf)


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