org.apache.axis2.jaxws.message
Enum XMLFaultCode

java.lang.Object
  extended by java.lang.Enum<XMLFaultCode>
      extended by org.apache.axis2.jaxws.message.XMLFaultCode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<XMLFaultCode>

public enum XMLFaultCode
extends java.lang.Enum<XMLFaultCode>

Agnostic representation of SOAP 1.1 and SOAP 1.2 fault code values.

See Also:
XMLFault

Enum Constant Summary
DATAENCODINGUNKNOWN
           
MUSTUNDERSTAND
           
RECEIVER
           
SENDER
           
VERSIONMISMATCH
           
 
Method Summary
static XMLFaultCode fromQName(QName qName)
          get the XMLPart corresponding to this specified QName
 QName toQName(java.lang.String namespace)
          Return QName for the given protocol
static XMLFaultCode valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static XMLFaultCode[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SENDER

public static final XMLFaultCode SENDER

RECEIVER

public static final XMLFaultCode RECEIVER

MUSTUNDERSTAND

public static final XMLFaultCode MUSTUNDERSTAND

DATAENCODINGUNKNOWN

public static final XMLFaultCode DATAENCODINGUNKNOWN

VERSIONMISMATCH

public static final XMLFaultCode VERSIONMISMATCH
Method Detail

values

public static final XMLFaultCode[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(XMLFaultCode c : XMLFaultCode.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static XMLFaultCode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

toQName

public QName toQName(java.lang.String namespace)
Return QName for the given protocol

Parameters:
namespace - of the envelope for the protocol
Returns:

fromQName

public static XMLFaultCode fromQName(QName qName)
get the XMLPart corresponding to this specified QName

Parameters:
qName -
Returns:
corresponding XMLPart


Copyright © 2007 Apache Web Services Project. All Rights Reserved.