com.neeve.ods
Enum IStoreBinding.State

java.lang.Object
  extended by java.lang.Enum<IStoreBinding.State>
      extended by com.neeve.ods.IStoreBinding.State
All Implemented Interfaces:
Serializable, Comparable<IStoreBinding.State>
Enclosing interface:
IStoreBinding

public static enum IStoreBinding.State
extends Enum<IStoreBinding.State>

Enumerates the different binding states


Enum Constant Summary
Closed
          Indicates that a binding has been closed.
Failed
          Indicates that a binding has failed.
Open
          Indicates that a binding is open and ready for operation.
Opening
          Indicates that a binding is opening
 
Method Summary
static IStoreBinding.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IStoreBinding.State[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Opening

public static final IStoreBinding.State Opening
Indicates that a binding is opening


Open

public static final IStoreBinding.State Open
Indicates that a binding is open and ready for operation.


Failed

public static final IStoreBinding.State Failed
Indicates that a binding has failed.

A binding transitions to this state when it fails and before it dispatches the failure event (IStoreBindingFailedEvent). Operations performed on a failed will return with illegal state exception.


Closed

public static final IStoreBinding.State Closed
Indicates that a binding has been closed.

A binding transitions to this state on closure.

Method Detail

values

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

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

valueOf

public static IStoreBinding.State valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.