com.highdeal.pnr.hci
Enum AccountState

java.lang.Object
  extended by java.lang.Enum<AccountState>
      extended by com.highdeal.pnr.hci.AccountState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AccountState>

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

This enumeration lists the account states; They must be one among the four next, given in ascending order, from initial state to terminal state.


Enum Constant Summary
ACTIVE
           
BLOCKED
           
CLOSED
           
LOCKED
           
 
Method Summary
static AccountState getFromIndex(short index)
          Gets one state of this enum, or null, from a prettyName.
 short getIndex()
          Gets the state index.
 java.lang.String getPrettyName()
          Gets the state pretty name.
static AccountState parse(java.lang.String prettyName)
          Gets one state of this enum, or null, from a prettyName.
static AccountState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AccountState[] 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

ACTIVE

public static final AccountState ACTIVE

BLOCKED

public static final AccountState BLOCKED

LOCKED

public static final AccountState LOCKED

CLOSED

public static final AccountState CLOSED
Method Detail

values

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

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

valueOf

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

getPrettyName

public java.lang.String getPrettyName()
Gets the state pretty name.

Returns:
The state pretty name

getIndex

public short getIndex()
Gets the state index.

Returns:
The state index

parse

public static final AccountState parse(java.lang.String prettyName)
Gets one state of this enum, or null, from a prettyName.

Parameters:
prettyName - The prettyName of the expected state
Returns:
An element of PrepaidAccountState, or null

getFromIndex

public static final AccountState getFromIndex(short index)
Gets one state of this enum, or null, from a prettyName.

Parameters:
index - The index of the expected state
Returns:
An element of PrepaidAccountState, or null

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)