org.apache.woden.internal.wsdl20
Class EndpointImpl

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.NestedImpl
                  extended by org.apache.woden.internal.wsdl20.EndpointImpl
All Implemented Interfaces:
Endpoint, AttributeExtensible, ElementExtensible, NestedComponent, WSDLComponent, DocumentableElement, EndpointElement, NestedElement, WSDLElement

public class EndpointImpl
extends NestedImpl
implements Endpoint, EndpointElement

This class represents the Endpoint component and the <endpoint> element.

Author:
John Kaputin (jkaputin@apache.org)

Constructor Summary
EndpointImpl()
           
 
Method Summary
 java.net.URI getAddress()
          Returns a URI that represents the {address} property of this Endpoint.
 Binding getBinding()
          Represents the {binding} property of the Endpoint component.
 BindingElement getBindingElement()
          Return the BindingElement referred to by this EndpointElement.
 QName getBindingName()
          Return the name of the BindingElement referred to by this EndpointElement.
 NCName getName()
          Returns the local name representing the {name} property of this Endpoint.
 void setAddress(java.net.URI uri)
          Set the endpoint address of this EndpointElement to the specified URI.
 void setBindingName(QName qname)
          Specify the name of the BindingElement referred to by this EndpointElement.
 void setName(NCName name)
          Set the name of this EndpointElement to the specified NCName.
 EndpointElement 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.NestedImpl
getParent, getParentElement, setParentElement
 
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.NestedComponent
getParent
 
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.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
 

Constructor Detail

EndpointImpl

public EndpointImpl()
Method Detail

getName

public NCName getName()
Description copied from interface: Endpoint
Returns the local name representing the {name} property of this Endpoint.

Specified by:
getName in interface Endpoint
Specified by:
getName in interface EndpointElement
Returns:
NCName representing the name of this Endpoint

getBinding

public Binding getBinding()
Description copied from interface: Endpoint
Represents the {binding} property of the Endpoint component. This is the Binding component that this Endpoint is associated with.

Specified by:
getBinding in interface Endpoint
Returns:
Binding associated with this Endpoint

getAddress

public java.net.URI getAddress()
Description copied from interface: Endpoint
Returns a URI that represents the {address} property of this Endpoint. This is the network address at which the parent service can be found using the binding associated with this endpoint.

Specified by:
getAddress in interface Endpoint
Specified by:
getAddress in interface EndpointElement
Returns:
the URI address of the Service via this Endpoint

toElement

public EndpointElement toElement()
Description copied from interface: Endpoint
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 Endpoint
Returns:
the EndpointElement that maps to this Endpoint

setName

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

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

setBindingName

public void setBindingName(QName qname)
Description copied from interface: EndpointElement
Specify the name of the BindingElement referred to by this EndpointElement. The specified QName corresponds to the binding attribute of the <endpoint> element.

Specified by:
setBindingName in interface EndpointElement
Parameters:
qname - the QName of the binding

getBindingName

public QName getBindingName()
Description copied from interface: EndpointElement
Return the name of the BindingElement referred to by this EndpointElement. This corresponds to the binding attribute of the <endpoint> element.

Specified by:
getBindingName in interface EndpointElement
Returns:
the QName of the binding

getBindingElement

public BindingElement getBindingElement()
Description copied from interface: EndpointElement
Return the BindingElement referred to by this EndpointElement. This equates to the <binding> element referred to by the binding attribute of the <endpoint> element. If this reference cannot be resolved to a BindingElement, this method will return null.

Specified by:
getBindingElement in interface EndpointElement
Returns:
the BindingElement

setAddress

public void setAddress(java.net.URI uri)
Description copied from interface: EndpointElement
Set the endpoint address of this EndpointElement to the specified URI. This corresponds to the address attribute of the <endpoint> element.

Specified by:
setAddress in interface EndpointElement
Parameters:
uri - the endpoint address URI


Copyright © 2007. All Rights Reserved.