planetj.qif
Class QIFAccountRecord

java.lang.Object
  |
  +--planetj.qif.QIFRecord
        |
        +--planetj.qif.QIFAccountRecord

public class QIFAccountRecord
extends QIFRecord

The account header !Account is used in two places: at the start of an account list and the start of a list of transactions to specify to which account they belong.


Field Summary
static String FIELD_ACCOUNT_TYPE
          Type of account
static String FIELD_CREDIT_LIMIT
          Credit limit (only for credit card accounts)
static String FIELD_DESCRIPTION
          Description of the account
static String FIELD_NAME
          Name of the account
static String FIELD_SALES_TAX_RATE
          Sales Tax Rate (only for Tax Accounts)
static String FIELD_STATEMENT_BALANCE_AMOUNT
          Statement balance amount
static String FIELD_STATEMENT_BALANCE_DATE
          Statement balance date
 
Fields inherited from class planetj.qif.QIFRecord
CLEAR_AUTOSWITCH, OPTION_ALL_TRANSFER, OPTION_AUTOSWITCH, RECORD_ACCOUNT, RECORD_CLEAR, RECORD_END, RECORD_OPTION, RECORD_TYPE, TYPE_ASSET, TYPE_BANK, TYPE_BILL, TYPE_BUDGET, TYPE_CASH, TYPE_CATEGORY_LIST, TYPE_CLASS_LIST, TYPE_CREDIT_CARD, TYPE_INVESTMENT, TYPE_INVOICE, TYPE_INVOICE_ITEM, TYPE_LIABILITY, TYPE_MEMORIZED, TYPE_PRICES, TYPE_SECURITY, TYPE_TAX, TYPE_TEMPLATE
 
Constructor Summary
QIFAccountRecord(String name)
          Constructs an AccountRecord for defining an account of the given name.
 
Method Summary
 String getCreditLimit()
          Credit limit (only for credit card accounts)
 String getDescription()
          Description of the account
 String getName()
          Name of the account
 String getStatementBalanceAmount()
          Statement balance amount
 String getStatementBalanceDate()
          Statement balance date
 String getType()
          Type of account
 void setCreditLimit(String creditLimit)
          Credit limit (only for credit card accounts)
 void setDescription(String description)
          Description of the account
 void setName(String name)
          Name of the account
 void setStatementBalanceAmount(String statementBalanceAmount)
          Statement balance amount
 void setStatementBalanceDate(String statementBalanceDate)
          Statement balance date
 void setType(String type)
          Type of account
 String toString()
          Returns the complete QIF record corresponding to the AccountRecord.
 StringBuffer toStringBuffer()
          Returns the complete QIF record corresponding to the AccountRecord.
 
Methods inherited from class planetj.qif.QIFRecord
encodeDate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIELD_NAME

public static final String FIELD_NAME
Name of the account

See Also:
Constant Field Values

FIELD_ACCOUNT_TYPE

public static final String FIELD_ACCOUNT_TYPE
Type of account

See Also:
Constant Field Values

FIELD_DESCRIPTION

public static final String FIELD_DESCRIPTION
Description of the account

See Also:
Constant Field Values

FIELD_CREDIT_LIMIT

public static final String FIELD_CREDIT_LIMIT
Credit limit (only for credit card accounts)

See Also:
Constant Field Values

FIELD_SALES_TAX_RATE

public static final String FIELD_SALES_TAX_RATE
Sales Tax Rate (only for Tax Accounts)

See Also:
Constant Field Values

FIELD_STATEMENT_BALANCE_DATE

public static final String FIELD_STATEMENT_BALANCE_DATE
Statement balance date

See Also:
Constant Field Values

FIELD_STATEMENT_BALANCE_AMOUNT

public static final String FIELD_STATEMENT_BALANCE_AMOUNT
Statement balance amount

See Also:
Constant Field Values
Constructor Detail

QIFAccountRecord

public QIFAccountRecord(String name)
Constructs an AccountRecord for defining an account of the given name.

Method Detail

getCreditLimit

public String getCreditLimit()
Credit limit (only for credit card accounts)


getDescription

public String getDescription()
Description of the account


getName

public String getName()
Name of the account


getStatementBalanceAmount

public String getStatementBalanceAmount()
Statement balance amount


getStatementBalanceDate

public String getStatementBalanceDate()
Statement balance date


getType

public String getType()
Type of account


setCreditLimit

public void setCreditLimit(String creditLimit)
Credit limit (only for credit card accounts)


setDescription

public void setDescription(String description)
Description of the account


setName

public void setName(String name)
Name of the account


setStatementBalanceAmount

public void setStatementBalanceAmount(String statementBalanceAmount)
Statement balance amount


setStatementBalanceDate

public void setStatementBalanceDate(String statementBalanceDate)
Statement balance date


setType

public void setType(String type)
Type of account


toString

public String toString()
Returns the complete QIF record corresponding to the AccountRecord. Values that were not explicitely set are not included in the result. Please use toStringBuffer() if possible Creation date: (2/8/2002 7:36:52 PM)

Overrides:
toString in class Object

toStringBuffer

public StringBuffer toStringBuffer()
Returns the complete QIF record corresponding to the AccountRecord. Values that were not explicitely set are not included in the result.

This method saves a String Object creation over toString(). Please use this method if possible Creation date: (2/8/2002 7:36:52 PM)

Specified by:
toStringBuffer in class QIFRecord
Returns:
java.lang.StringBuffer