eu.larkc.core
Enum LarkcKBStatus

java.lang.Object
  extended by java.lang.Enum<LarkcKBStatus>
      extended by eu.larkc.core.LarkcKBStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<LarkcKBStatus>

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

Enum used by the LarKC platform to keep track of the LarKC KB status. The life-cycle of a successful initialization of the platform looks as follows:

  1. NOT_INITIALIZED
  2. INITIALIZING
  3. INITIALIZED

Author:
Alexey Cheptsov

Enum Constant Summary
INITIALIZED
          The KB has been successfully initialized.
INITIALIZING
          The KB is initializing.
NOT_INITIALIZED
          The KB has not been initialized yet.
 
Method Summary
static LarkcKBStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static LarkcKBStatus[] 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

NOT_INITIALIZED

public static final LarkcKBStatus NOT_INITIALIZED
The KB has not been initialized yet.


INITIALIZING

public static final LarkcKBStatus INITIALIZING
The KB is initializing.


INITIALIZED

public static final LarkcKBStatus INITIALIZED
The KB has been successfully initialized.

Method Detail

values

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

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

valueOf

public static LarkcKBStatus 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