planetj.qif
Class QIFAccountRecord

java.lang.Object
  extended byplanetj.qif.QIFRecord
      extended byplanetj.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 java.lang.String FIELD_ACCOUNT_TYPE
          Type of account
static java.lang.String FIELD_CREDIT_LIMIT
          Credit limit (only for credit card accounts)
static java.lang.String FIELD_DESCRIPTION
          Description of the account
static java.lang.String FIELD_NAME
          Name of the account
static java.lang.String FIELD_SALES_TAX_RATE
          Sales Tax Rate (only for Tax Accounts)
static java.lang.String FIELD_STATEMENT_BALANCE_AMOUNT
          Statement balance amount
static java.lang.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(java.lang.String name)
          Constructs an AccountRecord for defining an account of the given name.
 
Method Summary
 java.lang.String getCreditLimit()
          Credit limit (only for credit card accounts)
 java.lang.String getDescription()
          Description of the account
 java.lang.String getName()
          Name of the account
 java.lang.String getStatementBalanceAmount()
          Statement balance amount
 java.lang.String getStatementBalanceDate()
          Statement balance date
 java.lang.String getType()
          Type of account
 void setCreditLimit(java.lang.String creditLimit)
          Credit limit (only for credit card accounts)
 void setDescription(java.lang.String description)
          Description of the account
 void setName(java.lang.String name)
          Name of the account
 void setStatementBalanceAmount(java.lang.String statementBalanceAmount)
          Statement balance amount
 void setStatementBalanceDate(java.lang.String statementBalanceDate)
          Statement balance date
 void setType(java.lang.String type)
          Type of account
 java.lang.String toString()
          Returns the complete QIF record corresponding to the AccountRecord.
 java.lang.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 java.lang.String FIELD_NAME
Name of the account

See Also:
Constant Field Values

FIELD_ACCOUNT_TYPE

public static final java.lang.String FIELD_ACCOUNT_TYPE
Type of account

See Also:
Constant Field Values

FIELD_DESCRIPTION

public static final java.lang.String FIELD_DESCRIPTION
Description of the account

See Also:
Constant Field Values

FIELD_CREDIT_LIMIT

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

See Also:
Constant Field Values

FIELD_SALES_TAX_RATE

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

See Also:
Constant Field Values

FIELD_STATEMENT_BALANCE_DATE

public static final java.lang.String FIELD_STATEMENT_BALANCE_DATE
Statement balance date

See Also:
Constant Field Values

FIELD_STATEMENT_BALANCE_AMOUNT

public static final java.lang.String FIELD_STATEMENT_BALANCE_AMOUNT
Statement balance amount

See Also:
Constant Field Values
Constructor Detail

QIFAccountRecord

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

Method Detail

getCreditLimit

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


getDescription

public java.lang.String getDescription()
Description of the account


getName

public java.lang.String getName()
Name of the account


getStatementBalanceAmount

public java.lang.String getStatementBalanceAmount()
Statement balance amount


getStatementBalanceDate

public java.lang.String getStatementBalanceDate()
Statement balance date


getType

public java.lang.String getType()
Type of account


setCreditLimit

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


setDescription

public void setDescription(java.lang.String description)
Description of the account


setName

public void setName(java.lang.String name)
Name of the account


setStatementBalanceAmount

public void setStatementBalanceAmount(java.lang.String statementBalanceAmount)
Statement balance amount


setStatementBalanceDate

public void setStatementBalanceDate(java.lang.String statementBalanceDate)
Statement balance date


setType

public void setType(java.lang.String type)
Type of account


toString

public java.lang.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)


toStringBuffer

public java.lang.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