jgnash.engine
Enum AccountType
java.lang.Object
java.lang.Enum<AccountType>
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
| 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 |
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
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
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)