org.ow2.easywsdl.wsdl.impl.wsdl11
Class ServiceImpl
java.lang.Object
org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl<E>
org.ow2.easywsdl.schema.api.abstractElmt.AbstractXMLElementImpl<E>
org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractWSDLElementImpl<E>
org.ow2.easywsdl.wsdl.api.abstractElmt.AbstractServiceImpl<TService,InterfaceType,Endpoint>
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
Fields inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl |
documentation, model, parent |
Methods inherited from class org.ow2.easywsdl.schema.api.abstractElmt.AbstractSchemaElementImpl |
getParent, getSchema, getTopParent, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ow2.easywsdl.schema.api.XMLElement |
addOtherElements, getOtherElements |
Methods inherited from interface org.ow2.easywsdl.schema.api.SchemaElement |
createDocumentation, getDocumentation, getOtherAttributes, setDocumentation |
ServiceImpl
public ServiceImpl(TService service,
DescriptionImpl desc)
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-2009 Petals Link (previously EBM WebSourcing). All Rights Reserved.