org.apache.woden.internal.wsdl20
Class ServiceImpl

java.lang.Object
  extended by org.apache.woden.internal.wsdl20.WSDLElementImpl
      extended by org.apache.woden.internal.wsdl20.WSDLObjectImpl
          extended by org.apache.woden.internal.wsdl20.DocumentableImpl
              extended by org.apache.woden.internal.wsdl20.ServiceImpl
All Implemented Interfaces:
AttributeExtensible, ElementExtensible, Service, WSDLComponent, DocumentableElement, NestedElement, ServiceElement, WSDLElement

public class ServiceImpl
extends DocumentableImpl
implements Service, ServiceElement

This class represents the Service component and the <service> element.

Author:
John Kaputin (jkaputin@apache.org)

Constructor Summary
ServiceImpl()
           
 
Method Summary
 EndpointElement addEndpointElement()
          Create an EndpointElement with this ServiceElement as its parent and return a reference to it.
 Endpoint getEndpoint(NCName name)
          Returns the Endpoint with the specified local name from the {endpoints} property of this Service.
 EndpointElement[] getEndpointElements()
          Return the set of EndpointElements within this ServiceElement.
 Endpoint[] getEndpoints()
          Represents the {endpoints} property of the Service component.
 Interface getInterface()
          Represents the {interface} property of the Service component.
 InterfaceElement getInterfaceElement()
          Return the InterfaceElement referred to by this ServiceElement.
 QName getInterfaceName()
          Return the name of the InterfaceElement referred to by this ServiceElement.
 QName getName()
          Returns the qualified name representing the {name} property of this Service.
 WSDLElement getParentElement()
           
 void setInterfaceName(QName qname)
          Specify the name of the InterfaceElement referred to by this ServiceElement.
 void setName(NCName name)
          Set the name of this ServiceElement to the specified NCName.
 void setParentElement(WSDLElement parent)
           
 ServiceElement toElement()
          Returns a WSDLElement that represents the element information item from the WSDL 2.0 infoset that maps to this WSDLComponent.
 
Methods inherited from class org.apache.woden.internal.wsdl20.DocumentableImpl
addDocumentationElement, getDocumentationElements
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLObjectImpl
containsComponent, equals, getComponentExtensionsForNamespace, setComponentExtensions
 
Methods inherited from class org.apache.woden.internal.wsdl20.WSDLElementImpl
addExtensionElement, getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, getExtensionElements, getExtensionElementsOfType, hasExtensionAttributesForNamespace, hasExtensionElementsForNamespace, removeExtensionElement, setExtensionAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.woden.wsdl20.WSDLComponent
equals, getComponentExtensionsForNamespace
 
Methods inherited from interface org.apache.woden.wsdl20.xml.DocumentableElement
addDocumentationElement, getDocumentationElements
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.AttributeExtensible
getExtensionAttribute, getExtensionAttributes, getExtensionAttributesForNamespace, hasExtensionAttributesForNamespace, setExtensionAttribute
 
Methods inherited from interface org.apache.woden.wsdl20.extensions.ElementExtensible
addExtensionElement, getExtensionElements, getExtensionElementsOfType, hasExtensionElementsForNamespace, removeExtensionElement
 

Constructor Detail

ServiceImpl

public ServiceImpl()
Method Detail

getName

public QName getName()
Description copied from interface: Service
Returns the qualified name representing the {name} property of this Service.

Specified by:
getName in interface Service
Specified by:
getName in interface ServiceElement
Returns:
QName representing the name of this Service

getInterface

public Interface getInterface()
Description copied from interface: Service
Represents the {interface} property of the Service component. This is the Interface component that this Service defines Endpoints for.

Specified by:
getInterface in interface Service
Returns:
Interface associated with this Service

getEndpoint

public Endpoint getEndpoint(NCName name)
Description copied from interface: Service
Returns the Endpoint with the specified local name from the {endpoints} property of this Service. That is, from the set of Endpoints defined by this Service. If the name parameter is null, this method will return null.

Specified by:
getEndpoint in interface Service
Parameters:
name - the local name of the Endpoint
Returns:
the named Endpoint

getEndpoints

public Endpoint[] getEndpoints()
Description copied from interface: Service
Represents the {endpoints} property of the Service component. This is the set of Endpoints declared by this Service. The method will return an empty array if there are no endpoints.

Specified by:
getEndpoints in interface Service
Returns:
an array of Endpoint objects

toElement

public ServiceElement toElement()
Description copied from interface: Service
Returns a WSDLElement that represents the element information item from the WSDL 2.0 infoset that maps to this WSDLComponent.

Specified by:
toElement in interface Service
Returns:
the ServiceElement that maps to this Service

setName

public void setName(NCName name)
Description copied from interface: ServiceElement
Set the name of this ServiceElement to the specified NCName. This corresponds to the name attribute of the <service> element.

Specified by:
setName in interface ServiceElement
Parameters:
name - the NCName that represents the local name of this service

setInterfaceName

public void setInterfaceName(QName qname)
Description copied from interface: ServiceElement
Specify the name of the InterfaceElement referred to by this ServiceElement. The specified QName corresponds to the interface attribute of the <service> element.

Specified by:
setInterfaceName in interface ServiceElement
Parameters:
qname - the QName of the interface

getInterfaceName

public QName getInterfaceName()
Description copied from interface: ServiceElement
Return the name of the InterfaceElement referred to by this ServiceElement. This corresponds to the interface attribute of the <service> element.

Specified by:
getInterfaceName in interface ServiceElement
Returns:
the QName of the interface

getInterfaceElement

public InterfaceElement getInterfaceElement()
Description copied from interface: ServiceElement
Return the InterfaceElement referred to by this ServiceElement. This equates to the <interface> element referred to by the interface attribute of the <service> element. If this reference cannot be resolved to an InterfaceElement, this method will return null.

Specified by:
getInterfaceElement in interface ServiceElement
Returns:
the InterfaceElement

addEndpointElement

public EndpointElement addEndpointElement()
Description copied from interface: ServiceElement
Create an EndpointElement with this ServiceElement as its parent and return a reference to it. This equates to adding an <endpoint> element to the <service> element.

Specified by:
addEndpointElement in interface ServiceElement
Returns:
the EndpointElement

getEndpointElements

public EndpointElement[] getEndpointElements()
Description copied from interface: ServiceElement
Return the set of EndpointElements within this ServiceElement. This equates to the set of <endpoint> elements within the <service> element. If no EndpointElements exist, an empty array is returned.

Specified by:
getEndpointElements in interface ServiceElement
Returns:
an array of EndpointElement

setParentElement

public void setParentElement(WSDLElement parent)
Specified by:
setParentElement in interface NestedElement

getParentElement

public WSDLElement getParentElement()
Specified by:
getParentElement in interface NestedElement


Copyright © 2007. All Rights Reserved.