public class InterfaceName extends Object
Modifier and Type | Field and Description |
---|---|
static QName |
subQName |
static QName |
wsamQName |
static QName |
wsawQName |
Constructor and Description |
---|
InterfaceName() |
InterfaceName(QName name) |
Modifier and Type | Method and Description |
---|---|
void |
fromOM(org.apache.axiom.om.OMElement omElement)
Convenience method to extract metadata from an element.
|
QName |
getName()
Method getName
|
static boolean |
isInterfaceNameElement(org.apache.axiom.om.OMElement omElement)
Static method to test whether an
OMElement is recognized
as a ServiceName element. |
void |
setName(QName name)
Method setName
|
org.apache.axiom.om.OMElement |
toOM(org.apache.axiom.om.OMFactory fac,
QName qname)
Convenience method to convert objects of this type to an
OMElement so that it
can be added to an EndpointReference |
public static final QName subQName
public static final QName wsamQName
public static final QName wsawQName
public InterfaceName()
public InterfaceName(QName name)
name
- public QName getName()
public void setName(QName name)
name
- public org.apache.axiom.om.OMElement toOM(org.apache.axiom.om.OMFactory fac, QName qname) throws AxisFault
OMElement
so that it
can be added to an EndpointReference
Use:
OMElement omElement = serviceName.toOM(new QName("http://schemas.xmlsoap.org/ws/2004/08/addressing", "PortType", "wsa"));
or
OMElement omElement = serviceName.toOM(new QName("http://www.w3.org/2007/05/addressing/metadata", "InterfaceName", "wsam"));
the difference being whether the EndpointReference is meant to represent a 2004/08 (Submission) or 2005/08 (Final) EndpointReference, respectively.
qname
- the QName
that carries the namespace of the metadata element.fac
- TODOAxisFault
public void fromOM(org.apache.axiom.om.OMElement omElement) throws AxisFault
<wsam:InterfaceName xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata">...</wsam:ServiceName>
or
<wsa:PortType xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">...</wsa:ServiceName>
omElement
- the OMElement
that holds the metadata.AxisFault
public static boolean isInterfaceNameElement(org.apache.axiom.om.OMElement omElement)
OMElement
is recognized
as a ServiceName element. If this method returns true
then
fromOM(OMElement)
is guaranteed not to fail.omElement
- the OMElement
to test.true
if the element is a ServiceName element,
false
otherwise.Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.