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.xml.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.xml.api.XMLElement
getOtherElements
 
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement
createDocumentation, getDocumentation, getOtherAttributes, 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.

Throws:
WSDLException

setInterface

void setInterface(I itf)


Copyright © 2008 eBM WebSourcing. All Rights Reserved.