jgnash.engine
Enum AccountType

java.lang.Object
  extended by java.lang.Enum<AccountType>
      extended by jgnash.engine.AccountType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AccountType>

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

Account type enumeration

Version:
$Id$
Author:
Craig Cavanaugh

Enum Constant Summary
ASSET
           
BANK
           
CASH
           
CHECKING
           
CREDIT
           
EQUITY
           
EXPENSE
           
INCOME
           
INVEST
           
LIABILITY
           
MUTUAL
           
ROOT
           
 
Field Summary
private  AccountGroup accountGroup
           
private  java.lang.Class<? extends AccountProxy> accountProxy
           
private  java.lang.String description
           
private  boolean mutable
           
 
Method Summary
 AccountGroup getAccountGroup()
           
static java.util.Set<AccountType> getAccountTypeSet()
           
protected  AccountProxy getProxy(Account account)
           
 boolean isMutable()
           
 java.lang.String toString()
           
static AccountType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AccountType[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ASSET

public static final AccountType ASSET

BANK

public static final AccountType BANK

CASH

public static final AccountType CASH

CHECKING

public static final AccountType CHECKING

CREDIT

public static final AccountType CREDIT

EQUITY

public static final AccountType EQUITY

EXPENSE

public static final AccountType EXPENSE

INCOME

public static final AccountType INCOME

INVEST

public static final AccountType INVEST

LIABILITY

public static final AccountType LIABILITY

MUTUAL

public static final AccountType MUTUAL

ROOT

public static final AccountType ROOT
Field Detail

description

private transient java.lang.String description

accountGroup

private transient AccountGroup accountGroup

accountProxy

private transient java.lang.Class<? extends AccountProxy> accountProxy

mutable

private transient boolean mutable
Method Detail

values

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

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

valueOf

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<AccountType>

getAccountGroup

public AccountGroup getAccountGroup()

isMutable

public boolean isMutable()

getAccountTypeSet

public static java.util.Set<AccountType> getAccountTypeSet()

getProxy

protected AccountProxy getProxy(Account account)