org.apache.axis2.addressing
Class EndpointReference

java.lang.Object
  extended byorg.apache.axis2.addressing.EndpointReference
All Implemented Interfaces:
java.io.Serializable

public class EndpointReference
extends java.lang.Object
implements java.io.Serializable

Class EndpointReference This class models the WS-A EndpointReferenceType. But this can be used without any WS-A handlers as well Since the models for this in Submission and Final versions are different, lets make this to comply with WS-A Final version. So any information found with WS-A submission will be "pumped" in to this model.

See Also:
Serialized Form

Constructor Summary
EndpointReference(java.lang.String address)
           
 
Method Summary
 void addAttribute(org.apache.axiom.om.OMAttribute omAttribute)
           
 void addAttribute(java.lang.String localName, org.apache.axiom.om.OMNamespace ns, java.lang.String value)
           
 void addExtensibleElement(org.apache.axiom.om.OMElement extensibleElement)
           
 void addMetaData(org.apache.axiom.om.OMNode metaData)
           
 void addReferenceParameter(org.apache.axiom.om.OMElement omElement)
           
 void addReferenceParameter(javax.xml.namespace.QName qname, java.lang.String value)
           
 void fromOM(org.apache.axiom.om.OMElement eprOMElement)
          Deprecated. use EndpointReferenceHelper.fromOM(OMElement) instead.
 java.lang.String getAddress()
           
 java.util.ArrayList getAddressAttributes()
           
 java.util.Map getAllReferenceParameters()
          This will return a Map of reference parameters with QName as the key and an OMElement as the value
 java.util.ArrayList getAttributes()
           
 java.util.ArrayList getExtensibleElements()
           
 java.util.ArrayList getMetaData()
           
 java.util.ArrayList getMetadataAttributes()
           
 java.lang.String getName()
          Deprecated.  
 boolean hasAnonymousAddress()
          hasAnonymousAddress
 boolean hasNoneAddress()
          hasNoneAddress
 boolean isEquivalent(EndpointReference epr)
          Compares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent.
 void setAddress(java.lang.String address)
           
 void setAddressAttributes(java.util.ArrayList al)
           
 void setExtensibleElements(java.util.ArrayList extensibleElements)
          {any}
 void setMetadataAttributes(java.util.ArrayList al)
           
 void setName(java.lang.String name)
          Deprecated.  
 void setReferenceParameters(java.util.Map referenceParameters)
          Set a Map with QName as the key and an OMElement as the value
 org.apache.axiom.om.OMElement toOM(java.lang.String nsurl, java.lang.String localName, java.lang.String prefix)
          Deprecated. use EndpointReferenceHelper#toOM(EndpointReference, QName, String) instead.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EndpointReference

public EndpointReference(java.lang.String address)
Parameters:
address -
Method Detail

addReferenceParameter

public void addReferenceParameter(org.apache.axiom.om.OMElement omElement)
Parameters:
omElement -

addReferenceParameter

public void addReferenceParameter(javax.xml.namespace.QName qname,
                                  java.lang.String value)
Parameters:
qname -
value - - the text of the OMElement. Remember that this is a convenient method for the user, which has limited capability. If you want more power use @See EndpointReference#addReferenceParameter(OMElement)

getAllReferenceParameters

public java.util.Map getAllReferenceParameters()
This will return a Map of reference parameters with QName as the key and an OMElement as the value

Returns:
- map of the reference parameters, where the key is the QName of the reference parameter and the value is an OMElement

getAddress

public java.lang.String getAddress()

setAddress

public void setAddress(java.lang.String address)
Parameters:
address - - xs:anyURI

getAddressAttributes

public java.util.ArrayList getAddressAttributes()

setAddressAttributes

public void setAddressAttributes(java.util.ArrayList al)

getMetadataAttributes

public java.util.ArrayList getMetadataAttributes()

setMetadataAttributes

public void setMetadataAttributes(java.util.ArrayList al)

hasAnonymousAddress

public boolean hasAnonymousAddress()
hasAnonymousAddress

Returns:
true if address is 'Anonymous URI'

hasNoneAddress

public boolean hasNoneAddress()
hasNoneAddress

Returns:
true if the address is the 'None URI' from the final addressing spec.

addAttribute

public void addAttribute(java.lang.String localName,
                         org.apache.axiom.om.OMNamespace ns,
                         java.lang.String value)
Parameters:
localName -
ns -
value -

getAttributes

public java.util.ArrayList getAttributes()

addAttribute

public void addAttribute(org.apache.axiom.om.OMAttribute omAttribute)
Parameters:
omAttribute -

getExtensibleElements

public java.util.ArrayList getExtensibleElements()

setExtensibleElements

public void setExtensibleElements(java.util.ArrayList extensibleElements)
{any}

Parameters:
extensibleElements -

addExtensibleElement

public void addExtensibleElement(org.apache.axiom.om.OMElement extensibleElement)

getMetaData

public java.util.ArrayList getMetaData()

addMetaData

public void addMetaData(org.apache.axiom.om.OMNode metaData)

getName

public java.lang.String getName()
Deprecated.  


setName

public void setName(java.lang.String name)
Deprecated.  

Parameters:
name -

setReferenceParameters

public void setReferenceParameters(java.util.Map referenceParameters)
Set a Map with QName as the key and an OMElement as the value

Parameters:
referenceParameters -

toString

public java.lang.String toString()

fromOM

public void fromOM(org.apache.axiom.om.OMElement eprOMElement)
Deprecated. use EndpointReferenceHelper.fromOM(OMElement) instead.

Parameters:
eprOMElement -

toOM

public org.apache.axiom.om.OMElement toOM(java.lang.String nsurl,
                                          java.lang.String localName,
                                          java.lang.String prefix)
                                   throws AxisFault
Deprecated. use EndpointReferenceHelper#toOM(EndpointReference, QName, String) instead.

Parameters:
nsurl -
localName -
prefix -
Throws:
AxisFault

isEquivalent

public boolean isEquivalent(EndpointReference epr)
Compares key parts of the state from the current instance of this class with the specified instance to see if they are equivalent.

This differs from the java.lang.Object.equals() method in that the equals() method generally looks at both the object identity (location in memory) and the object state (data).

Parameters:
epr - The object to compare with
Returns:
TRUE if this object is equivalent with the specified object that is, key fields match FALSE, otherwise


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.