Class InterfaceName
- java.lang.Object
-
- org.apache.axis2.addressing.metadata.InterfaceName
-
public class InterfaceName extends Object
-
-
Constructor Summary
Constructors Constructor Description InterfaceName()InterfaceName(QName name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromOM(org.apache.axiom.om.OMElement omElement)Convenience method to extract metadata from an element.QNamegetName()Method getNamestatic booleanisInterfaceNameElement(org.apache.axiom.om.OMElement omElement)Static method to test whether anOMElementis recognized as a ServiceName element.voidsetName(QName name)Method setNameorg.apache.axiom.om.OMElementtoOM(org.apache.axiom.om.OMFactory fac, QName qname)Convenience method to convert objects of this type to anOMElementso that it can be added to anEndpointReference
-
-
-
Constructor Detail
-
InterfaceName
public InterfaceName()
-
InterfaceName
public InterfaceName(QName name)
- Parameters:
name-
-
-
Method Detail
-
getName
public QName getName()
Method getName
-
setName
public void setName(QName name)
Method setName- Parameters:
name-
-
toOM
public org.apache.axiom.om.OMElement toOM(org.apache.axiom.om.OMFactory fac, QName qname) throws AxisFaultConvenience method to convert objects of this type to anOMElementso that it can be added to anEndpointReferenceUse:
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.
- Parameters:
qname- theQNamethat carries the namespace of the metadata element.fac- TODO- Returns:
- an OMElement that can be added to the metadata of an EndpointReference.
- Throws:
AxisFault
-
fromOM
public void fromOM(org.apache.axiom.om.OMElement omElement) throws AxisFaultConvenience method to extract metadata from an element.<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>
- Parameters:
omElement- theOMElementthat holds the metadata.- Throws:
AxisFault
-
isInterfaceNameElement
public static boolean isInterfaceNameElement(org.apache.axiom.om.OMElement omElement)
Static method to test whether anOMElementis recognized as a ServiceName element. If this method returnstruethenfromOM(OMElement)is guaranteed not to fail.- Parameters:
omElement- theOMElementto test.- Returns:
trueif the element is a ServiceName element,falseotherwise.
-
-