org.apache.axis.message.addressing
Class ServiceNameType

java.lang.Object
  extended by javax.xml.namespace.QName
      extended by org.apache.axis.message.addressing.AttributedQName
          extended by org.apache.axis.message.addressing.ServiceNameType
All Implemented Interfaces:
java.io.Serializable, org.apache.axis.encoding.SimpleType, DOMAppendable

public class ServiceNameType
extends AttributedQName
implements org.apache.axis.encoding.SimpleType

Java content class for ServiceNameType complex type.

The following schema fragment specifies the expected content contained within this java content object. (defined at http://schemas.xmlsoap.org/ws/2004/08/addressing line 67)

 <complexType name="ServiceNameType">
   <simpleContent>
     <extension base="<http://www.w3.org/2001/XMLSchema>QName">
       <attribute name="PortName"
          type="{http://www.w3.org/2001/XMLSchema}NCName" />
     </extension>
   </simpleContent>
 </complexType>
 

Version:
$Revision: 14 $
Author:
Davanum Srinivas
See Also:
Serialized Form

Constructor Summary
ServiceNameType(javax.xml.namespace.QName qname)
          Creates a new instance.
ServiceNameType(javax.xml.namespace.QName qname, java.lang.String port)
          Creates a new instance.
ServiceNameType(ServiceNameType serviceName)
          Creates a new instance.
ServiceNameType(java.lang.String namespace, java.lang.String localName)
          Creates a new instance.
 
Method Summary
 void append(AddressingVersion version, org.w3c.dom.Element parent, java.lang.String elementName)
          Appends a DOM representation of this instance to the specified element.
 void append(org.w3c.dom.Element parent)
          Appends a DOM representation of this instance to the specified element.
static ServiceNameType fromElement(org.w3c.dom.Element element)
          Parses an XML element node and extracts an instance of this class.
static ServiceNameType fromSOAPElement(javax.xml.soap.SOAPElement element)
          Parses a SOAP element and extracts an instance of this class.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mType, java.lang.Class<?> jType, javax.xml.namespace.QName xType)
          Gets a custom Deserializer.
 java.lang.String getPort()
          Gets the service port.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mType, java.lang.Class<?> jType, javax.xml.namespace.QName xType)
          Gets a custom Serializer.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return the type description object.
 void setPort(java.lang.String port)
          Sets the service port.
 
Methods inherited from class org.apache.axis.message.addressing.AttributedQName
append
 
Methods inherited from class javax.xml.namespace.QName
equals, getLocalPart, getNamespaceURI, getPrefix, hashCode, toString, valueOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceNameType

public ServiceNameType(javax.xml.namespace.QName qname)
Creates a new instance.

Parameters:
qname - Service qualified name

ServiceNameType

public ServiceNameType(javax.xml.namespace.QName qname,
                       java.lang.String port)
Creates a new instance.

Parameters:
qname - Service qualified name
port - Service port

ServiceNameType

public ServiceNameType(ServiceNameType serviceName)
Creates a new instance.

Parameters:
serviceName - Service name to copy

ServiceNameType

public ServiceNameType(java.lang.String namespace,
                       java.lang.String localName)
Creates a new instance.

Parameters:
namespace - Service namespace
localName - Service local name
Method Detail

fromElement

public static ServiceNameType fromElement(org.w3c.dom.Element element)
Parses an XML element node and extracts an instance of this class.

Parameters:
element - Element to parse
Returns:
Resulting instance

fromSOAPElement

public static ServiceNameType fromSOAPElement(javax.xml.soap.SOAPElement element)
Parses a SOAP element and extracts an instance of this class.

Parameters:
element - Element to parse
Returns:
Resulting instance

getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mType,
                                                                    java.lang.Class<?> jType,
                                                                    javax.xml.namespace.QName xType)
Gets a custom Deserializer.

Parameters:
mType - not used
jType - Java type
xType - XML type
Returns:
A Deserializer instance

getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mType,
                                                                java.lang.Class<?> jType,
                                                                javax.xml.namespace.QName xType)
Gets a custom Serializer.

Parameters:
mType - not used
jType - Java type
xType - XML type
Returns:
A Serializer instance

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return the type description object.

Returns:
Type type description for this class

append

public void append(AddressingVersion version,
                   org.w3c.dom.Element parent,
                   java.lang.String elementName)
Appends a DOM representation of this instance to the specified element.

Specified by:
append in interface DOMAppendable
Overrides:
append in class AttributedQName
Parameters:
version - WS-Addressing version to use
parent - Parent element
elementName - Name of the element to create

append

public void append(org.w3c.dom.Element parent)
Appends a DOM representation of this instance to the specified element.

This method should call DOMAppendable.append(Element, String) with a default value for the elementName parameter. Abstract classes, or those to be always subclassed may optionally throw UnsupportedOperationException instead.

Specified by:
append in interface DOMAppendable
Overrides:
append in class AttributedQName
Parameters:
parent - Parent element

getPort

public java.lang.String getPort()
Gets the service port.

Returns:
Service port name

setPort

public void setPort(java.lang.String port)
Sets the service port.

Parameters:
port - New service port name


Copyright © 2008-2009 Rodrigo Ruiz. All Rights Reserved.