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
 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-Generate EPR
 org.apache.xmlbeans.XmlObject getXmlObject(java.lang.String namespace)
           
 void setPortTypeQName(javax.xml.namespace.QName portTypeQName)
           
 void setReferenceParameters(java.lang.Object[] referenceParameters)
           
 void setReferenceProperties(java.lang.Object[] referenceProps)
           
 void setResourceKey(ResourceKey resourceKey)
          Adds the ResourceKey which will be added to the ReferenceProperties
 void setServicePortName(java.lang.String servicePortName)
           
 void setServiceQName(javax.xml.namespace.QName serviceQName)
           
 
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

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

getReferenceParameters

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

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

getServiceName

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

Specified by:
getServiceName in interface EndpointReference
Returns:
Service QName

getXmlObject

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

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

getXmlObject

public org.apache.xmlbeans.XmlObject getXmlObject(java.lang.String namespace)

setPortTypeQName

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

setServicePortName

public void setServicePortName(java.lang.String servicePortName)

setServiceQName

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

setReferenceProperties

public void setReferenceProperties(java.lang.Object[] referenceProps)
Parameters:
referenceProps - XmlObject[] of refernece properties to be added

setReferenceParameters

public void setReferenceParameters(java.lang.Object[] referenceParameters)
Parameters:
referenceParameters - XmlObject[] of refernece parameters to be added

setResourceKey

public void setResourceKey(ResourceKey resourceKey)
Adds the ResourceKey which will be added to the ReferenceProperties

Parameters:
resourceKey -


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