planetj.qif
Class QIFRecord

java.lang.Object
  |
  +--planetj.qif.QIFRecord
Direct Known Subclasses:
QIFAccountRecord, QIFBankTransaction

public abstract class QIFRecord
extends Object

A Quicken interchange format record, which starts with a !Type: or !Account header, and ends with the ^ character.

A record could look like this:

 !Type:Bank
 D16/10/2001
 T-10.0
 N2
 PMy first expense
 LMy expenses
 ^
 


Field Summary
static String CLEAR_AUTOSWITCH
          End of the Accounts List
static String OPTION_ALL_TRANSFER
          Forces transfers to be inported, even if Ignore Transfers is set
static String OPTION_AUTOSWITCH
          Start of the Accounts List Records
static String RECORD_ACCOUNT
           
static String RECORD_CLEAR
           
static String RECORD_END
           
static String RECORD_OPTION
           
static String RECORD_TYPE
           
static String TYPE_ASSET
          Asset account transactions
static String TYPE_BANK
          Bank account transactions
static String TYPE_BILL
          Bill Account
static String TYPE_BUDGET
          Budgets Lists
static String TYPE_CASH
          Cash account transactions
static String TYPE_CATEGORY_LIST
          Category list
static String TYPE_CLASS_LIST
          Class list
static String TYPE_CREDIT_CARD
          Credit card account transactions
static String TYPE_INVESTMENT
          Investment account transactions
static String TYPE_INVOICE
          Invouce Account
static String TYPE_INVOICE_ITEM
          Invoice items list
static String TYPE_LIABILITY
          Liability account transactions
static String TYPE_MEMORIZED
          Memorized transaction list
static String TYPE_PRICES
          Security Prices List
static String TYPE_SECURITY
          Securities List
static String TYPE_TAX
          Tax account
static String TYPE_TEMPLATE
          Template
 
Constructor Summary
QIFRecord()
           
 
Method Summary
static StringBuffer encodeDate(Date pDate)
          Returns a StringBuffer with the encoded Date Creation date: (2/8/2002 7:40:18 PM)
abstract  StringBuffer toStringBuffer()
          This method saves a String Object creation over toString().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_BANK

public static final String TYPE_BANK
Bank account transactions

See Also:
Constant Field Values

TYPE_CASH

public static final String TYPE_CASH
Cash account transactions

See Also:
Constant Field Values

TYPE_CREDIT_CARD

public static final String TYPE_CREDIT_CARD
Credit card account transactions

See Also:
Constant Field Values

TYPE_INVESTMENT

public static final String TYPE_INVESTMENT
Investment account transactions

See Also:
Constant Field Values

TYPE_ASSET

public static final String TYPE_ASSET
Asset account transactions

See Also:
Constant Field Values

TYPE_LIABILITY

public static final String TYPE_LIABILITY
Liability account transactions

See Also:
Constant Field Values

TYPE_INVOICE

public static final String TYPE_INVOICE
Invouce Account

See Also:
Constant Field Values

TYPE_TAX

public static final String TYPE_TAX
Tax account

See Also:
Constant Field Values

TYPE_BILL

public static final String TYPE_BILL
Bill Account

See Also:
Constant Field Values

TYPE_CATEGORY_LIST

public static final String TYPE_CATEGORY_LIST
Category list

See Also:
Constant Field Values

TYPE_CLASS_LIST

public static final String TYPE_CLASS_LIST
Class list

See Also:
Constant Field Values

TYPE_MEMORIZED

public static final String TYPE_MEMORIZED
Memorized transaction list

See Also:
Constant Field Values

TYPE_SECURITY

public static final String TYPE_SECURITY
Securities List

See Also:
Constant Field Values

TYPE_PRICES

public static final String TYPE_PRICES
Security Prices List

See Also:
Constant Field Values

TYPE_BUDGET

public static final String TYPE_BUDGET
Budgets Lists

See Also:
Constant Field Values

TYPE_INVOICE_ITEM

public static final String TYPE_INVOICE_ITEM
Invoice items list

See Also:
Constant Field Values

TYPE_TEMPLATE

public static final String TYPE_TEMPLATE
Template

See Also:
Constant Field Values

RECORD_ACCOUNT

public static final String RECORD_ACCOUNT
See Also:
Constant Field Values

RECORD_TYPE

public static final String RECORD_TYPE
See Also:
Constant Field Values

RECORD_END

public static final String RECORD_END
See Also:
Constant Field Values

RECORD_OPTION

public static final String RECORD_OPTION
See Also:
Constant Field Values

RECORD_CLEAR

public static final String RECORD_CLEAR
See Also:
Constant Field Values

OPTION_ALL_TRANSFER

public static final String OPTION_ALL_TRANSFER
Forces transfers to be inported, even if Ignore Transfers is set

See Also:
Constant Field Values

OPTION_AUTOSWITCH

public static final String OPTION_AUTOSWITCH
Start of the Accounts List Records

See Also:
Constant Field Values

CLEAR_AUTOSWITCH

public static final String CLEAR_AUTOSWITCH
End of the Accounts List

See Also:
Constant Field Values
Constructor Detail

QIFRecord

public QIFRecord()
Method Detail

encodeDate

public static StringBuffer encodeDate(Date pDate)
Returns a StringBuffer with the encoded Date Creation date: (2/8/2002 7:40:18 PM)


toStringBuffer

public abstract StringBuffer toStringBuffer()
This method saves a String Object creation over toString(). Please use this method if possible Returns a StringBuffer in QIF format Creation date: (2/11/2002 6:10:09 PM)

Returns:
java.lang.StringBuffer