org.apache.woden.wsdl20.xml
Interface ServiceElement

All Superinterfaces:
AttributeExtensible, DocumentableElement, ElementExtensible, NestedElement, WSDLElement
All Known Implementing Classes:
ServiceImpl

public interface ServiceElement
extends DocumentableElement, NestedElement

Represents the WSDL 2.0 <service> element.

Author:
John Kaputin (jkaputin@apache.org)

Method Summary
 EndpointElement addEndpointElement()
          Create an EndpointElement with this ServiceElement as its parent and return a reference to it.
 EndpointElement[] getEndpointElements()
          Return the set of EndpointElements within this ServiceElement.
 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()
          Return the qualified name of this ServiceElement, which consists of its local name and the targetNamespace of the enclosing DescriptionElement.
 void setInterfaceName(QName interfaceName)
          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.
 
Methods inherited from interface org.apache.woden.wsdl20.xml.DocumentableElement
addDocumentationElement, getDocumentationElements
 
Methods inherited from interface org.apache.woden.wsdl20.xml.NestedElement
getParentElement, setParentElement
 
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
 

Method Detail

setName

void setName(NCName name)
Set the name of this ServiceElement to the specified NCName. This corresponds to the name attribute of the <service> element.

Parameters:
name - the NCName that represents the local name of this service

getName

QName getName()
Return the qualified name of this ServiceElement, which consists of its local name and the targetNamespace of the enclosing DescriptionElement.

Returns:
the service QName

setInterfaceName

void setInterfaceName(QName interfaceName)
Specify the name of the InterfaceElement referred to by this ServiceElement. The specified QName corresponds to the interface attribute of the <service> element.

Parameters:
interfaceName - the QName of the interface

getInterfaceName

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

Returns:
the QName of the interface

getInterfaceElement

InterfaceElement getInterfaceElement()
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.

Returns:
the InterfaceElement

addEndpointElement

EndpointElement addEndpointElement()
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.

Returns:
the EndpointElement

getEndpointElements

EndpointElement[] getEndpointElements()
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.

Returns:
an array of EndpointElement


Copyright © 2007. All Rights Reserved.