org.apache.ws.addressing
Class XmlBeansEndpointReference

java.lang.Object
  extended byorg.apache.ws.addressing.XmlBeansEndpointReference
All Implemented Interfaces:
EndpointReference, XmlObjectWrapper

public class XmlBeansEndpointReference
extends java.lang.Object
implements XmlObjectWrapper, EndpointReference

This class wraps XmlBean-generated XmlBeansEndpointReference types for use throughout the system.

As a new version of the schema is generated, a new constructor should be added to encompass the new version.

Note..Use fully qualified class name in constructors for different versions.

Author:
Sal Campana

Constructor Summary
XmlBeansEndpointReference(org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType epr)
          Creates a new XmlBeansEndpointReference object.
XmlBeansEndpointReference(org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType epr)
          Creates a new XmlBeansEndpointReference object.
XmlBeansEndpointReference(java.lang.String address, java.lang.String addressingURI)
          Constructs an EPR (and the underlying XmlObject representation) given the params.
 
Method Summary
 void addReferenceParameter(java.lang.Object refProp)
          DOCUMENT_ME
 void addReferenceProperty(java.lang.Object refParam)
          DOCUMENT_ME
 java.lang.String getAddress()
          Returns the Address from the EPR as a String.
 java.lang.String getPortName()
          Returns the PortName associated with the Service in the EPR as a String
 javax.xml.namespace.QName getPortType()
          Returns the PortType QName
 java.lang.Object[] getReferenceParameters()
          Returns the ReferenceParameters Object.
 java.lang.Object[] getReferenceProperties()
          Returns the ReferenceProperties directly from the underlying XmlBean-generated class.
 javax.xml.namespace.QName getServiceName()
          Service QName
 org.apache.xmlbeans.XmlObject getXmlObject()
          The underlying XmlBean-Generated EPR
 org.apache.xmlbeans.XmlObject getXmlObject(java.lang.String namespace)
          Returns a version-specific XmlBean-Generated EPR
 void setPortTypeQName(javax.xml.namespace.QName portTypeQName)
          DOCUMENT_ME
 void setServicePortName(java.lang.String servicePortName)
          DOCUMENT_ME
 void setServiceQName(javax.xml.namespace.QName serviceQName)
          DOCUMENT_ME
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlBeansEndpointReference

public XmlBeansEndpointReference(java.lang.String address,
                                 java.lang.String addressingURI)
Constructs an EPR (and the underlying XmlObject representation) given the params.

Parameters:
address - - Endpoint Address. Must Not Be Null
addressingURI - - WS-Addressing URI - Must Not Be Null

XmlBeansEndpointReference

public XmlBeansEndpointReference(org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType epr)
Creates a new XmlBeansEndpointReference object.

Parameters:
epr - org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType XMLBean generated type

XmlBeansEndpointReference

public XmlBeansEndpointReference(org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType epr)
Creates a new XmlBeansEndpointReference object.

Parameters:
epr - org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType XMLBean generated type
Method Detail

getAddress

public java.lang.String getAddress()
Returns the Address from the EPR as a String.

Specified by:
getAddress in interface EndpointReference
Returns:
Address

getPortName

public java.lang.String getPortName()
Returns the PortName associated with the Service in the EPR as a String

Specified by:
getPortName in interface EndpointReference
Returns:
Service's Port Name

getPortType

public javax.xml.namespace.QName getPortType()
Returns the PortType QName

Specified by:
getPortType in interface EndpointReference
Returns:
PortType QName

setPortTypeQName

public void setPortTypeQName(javax.xml.namespace.QName portTypeQName)
DOCUMENT_ME

Parameters:
portTypeQName - DOCUMENT_ME

getReferenceParameters

public java.lang.Object[] getReferenceParameters()
Returns the ReferenceParameters Object.

Specified by:
getReferenceParameters in interface EndpointReference
Returns:
Object[] The ReferenceParameters

getReferenceProperties

public java.lang.Object[] getReferenceProperties()
Returns the ReferenceProperties directly from the underlying XmlBean-generated class. The signature returns Object to make it generic for other impls.

Specified by:
getReferenceProperties in interface EndpointReference
Returns:
Object[] containing the Reference Property elements

getServiceName

public javax.xml.namespace.QName getServiceName()
Service QName

Specified by:
getServiceName in interface EndpointReference
Returns:
Service QName

setServicePortName

public void setServicePortName(java.lang.String servicePortName)
DOCUMENT_ME

Parameters:
servicePortName - DOCUMENT_ME

setServiceQName

public void setServiceQName(javax.xml.namespace.QName serviceQName)
DOCUMENT_ME

Parameters:
serviceQName - DOCUMENT_ME

getXmlObject

public org.apache.xmlbeans.XmlObject getXmlObject()
The underlying XmlBean-Generated EPR

Specified by:
getXmlObject in interface XmlObjectWrapper
Returns:
The generated EPR

getXmlObject

public org.apache.xmlbeans.XmlObject getXmlObject(java.lang.String namespace)
Returns a version-specific XmlBean-Generated EPR

Parameters:
namespace - the WS-Addressing namespace for which you would like an EPR returned.
Returns:
Version-Specific EPR

addReferenceParameter

public void addReferenceParameter(java.lang.Object refProp)
DOCUMENT_ME

Specified by:
addReferenceParameter in interface EndpointReference
Parameters:
refProp - DOCUMENT_ME

addReferenceProperty

public void addReferenceProperty(java.lang.Object refParam)
DOCUMENT_ME

Specified by:
addReferenceProperty in interface EndpointReference
Parameters:
refParam - DOCUMENT_ME


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