|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.addressing.metadata.InterfaceName
public class InterfaceName
Field Summary | |
---|---|
static QName |
subQName
|
static QName |
wsamQName
|
static QName |
wsawQName
|
Constructor Summary | |
---|---|
InterfaceName()
|
|
InterfaceName(QName name)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final QName subQName
public static final QName wsamQName
public static final QName wsawQName
Constructor Detail |
---|
public InterfaceName()
public InterfaceName(QName name)
name
- Method Detail |
---|
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
- TODO
AxisFault
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |