org.codehaus.enunciate.contract.jaxws
Enum BindingType

java.lang.Object
  extended by java.lang.Enum<BindingType>
      extended by org.codehaus.enunciate.contract.jaxws.BindingType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BindingType>

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

Enumeration of the supported binding types.

Author:
Ryan Heaton

Enum Constant Summary
HTTP
           
SOAP_1_1
           
SOAP_1_2
           
 
Method Summary
static BindingType fromNamespace(java.lang.String namespace)
          The binding type from a given namespace.
 java.lang.String getNamespace()
          The namespace for this binding type.
 boolean isHttp()
          Whether this binding type is HTTP.
 boolean isSoap11()
          Whether this binding type is SOAP 1.1.
 boolean isSoap12()
          Whether this binding type is SOAP 1.2.
static BindingType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BindingType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SOAP_1_1

public static final BindingType SOAP_1_1

SOAP_1_2

public static final BindingType SOAP_1_2

HTTP

public static final BindingType HTTP
Method Detail

values

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

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

valueOf

public static BindingType 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
java.lang.NullPointerException - if the argument is null

getNamespace

public java.lang.String getNamespace()
The namespace for this binding type.

Returns:
The namespace for this binding type.

isSoap11

public boolean isSoap11()
Whether this binding type is SOAP 1.1.

Returns:
Whether this binding type is SOAP 1.1.

isSoap12

public boolean isSoap12()
Whether this binding type is SOAP 1.2.

Returns:
Whether this binding type is SOAP 1.2.

isHttp

public boolean isHttp()
Whether this binding type is HTTP.

Returns:
Whether this binding type is HTTP.

fromNamespace

public static BindingType fromNamespace(java.lang.String namespace)
The binding type from a given namespace.

Parameters:
namespace - The namespace
Returns:
The binding type from a given namespace.