org.apache.axis2.addressing
Class EndpointReference

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

public class EndpointReference
extends Object
implements 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(String address)
           
 
Method Summary
 void addAttribute(org.apache.axiom.om.OMAttribute omAttribute)
           
 void addAttribute(String localName, org.apache.axiom.om.OMNamespace ns, 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(QName qname, String value)
           
 void fromOM(org.apache.axiom.om.OMElement eprOMElement)
           
 String getAddress()
           
 Map getAllReferenceParameters()
          This will return a Map of reference parameters with QName as the key and an OMElement as the value
 ArrayList getAttributes()
           
 ArrayList getExtensibleElements()
           
 ArrayList getMetaData()
           
 String getName()
           
 void setAddress(String address)
           
 void setExtensibleElements(ArrayList extensibleElements)
          {any}
 void setName(String name)
           
 void setReferenceParameters(Map referenceParameters)
          Set a Map with QName as the key and an OMElement as the value
 void toOM()
           
 org.apache.axiom.om.OMElement toOM(String nsurl, String localName, String prefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EndpointReference

public EndpointReference(String address)
Parameters:
address -
Method Detail

addReferenceParameter

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

addReferenceParameter

public void addReferenceParameter(QName qname,
                                  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 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 String getAddress()

setAddress

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

addAttribute

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

getAttributes

public ArrayList getAttributes()

addAttribute

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

getExtensibleElements

public ArrayList getExtensibleElements()

setExtensibleElements

public void setExtensibleElements(ArrayList extensibleElements)
{any}

Parameters:
extensibleElements -

addExtensibleElement

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

getMetaData

public ArrayList getMetaData()

addMetaData

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

getName

public String getName()

setName

public void setName(String name)

setReferenceParameters

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

Parameters:
referenceParameters -

fromOM

public void fromOM(org.apache.axiom.om.OMElement eprOMElement)

toOM

public void toOM()

toOM

public org.apache.axiom.om.OMElement toOM(String nsurl,
                                          String localName,
                                          String prefix)
                                   throws AxisFault
Throws:
AxisFault