org.jboss.messaging.core.postoffice
Enum BindingType

java.lang.Object
  extended by java.lang.Enum<BindingType>
      extended by org.jboss.messaging.core.postoffice.BindingType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BindingType>

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

A BindingType

Author:
Tim Fox Created 22 Dec 2008 13:37:23

Enum Constant Summary
DIVERT
           
LOCAL_QUEUE
           
REMOTE_QUEUE
           
 
Field Summary
static int DIVERT_INDEX
           
static int LOCAL_QUEUE_INDEX
           
static int REMOTE_QUEUE_INDEX
           
 
Method Summary
static BindingType fromOrdinal(int index)
           
 int toInt()
           
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'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

LOCAL_QUEUE

public static final BindingType LOCAL_QUEUE

REMOTE_QUEUE

public static final BindingType REMOTE_QUEUE

DIVERT

public static final BindingType DIVERT
Field Detail

LOCAL_QUEUE_INDEX

public static final int LOCAL_QUEUE_INDEX
See Also:
Constant Field Values

REMOTE_QUEUE_INDEX

public static final int REMOTE_QUEUE_INDEX
See Also:
Constant Field Values

DIVERT_INDEX

public static final int DIVERT_INDEX
See Also:
Constant Field Values
Method Detail

values

public static final BindingType[] 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(BindingType c : BindingType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're 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

fromOrdinal

public static BindingType fromOrdinal(int index)

toInt

public int toInt()


Copyright © 2006 JBoss Inc. All Rights Reserved.