planetj.qif
Class QIFRecord

java.lang.Object
  extended byplanetj.qif.QIFRecord
Direct Known Subclasses:
QIFAccountRecord, QIFBankTransaction

public abstract class QIFRecord
extends java.lang.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 java.lang.String CLEAR_AUTOSWITCH
          End of the Accounts List
static java.lang.String OPTION_ALL_TRANSFER
          Forces transfers to be inported, even if Ignore Transfers is set
static java.lang.String OPTION_AUTOSWITCH
          Start of the Accounts List Records
static java.lang.String RECORD_ACCOUNT
           
static java.lang.String RECORD_CLEAR
           
static java.lang.String RECORD_END
           
static java.lang.String RECORD_OPTION
           
static java.lang.String RECORD_TYPE
           
static java.lang.String TYPE_ASSET
          Asset account transactions
static java.lang.String TYPE_BANK
          Bank account transactions
static java.lang.String TYPE_BILL
          Bill Account
static java.lang.String TYPE_BUDGET
          Budgets Lists
static java.lang.String TYPE_CASH
          Cash account transactions
static java.lang.String TYPE_CATEGORY_LIST
          Category list
static java.lang.String TYPE_CLASS_LIST
          Class list
static java.lang.String TYPE_CREDIT_CARD
          Credit card account transactions
static java.lang.String TYPE_INVESTMENT
          Investment account transactions
static java.lang.String TYPE_INVOICE
          Invouce Account
static java.lang.String TYPE_INVOICE_ITEM
          Invoice items list
static java.lang.String TYPE_LIABILITY
          Liability account transactions
static java.lang.String TYPE_MEMORIZED
          Memorized transaction list
static java.lang.String TYPE_PRICES
          Security Prices List
static java.lang.String TYPE_SECURITY
          Securities List
static java.lang.String TYPE_TAX
          Tax account
static java.lang.String TYPE_TEMPLATE
          Template
 
Constructor Summary
QIFRecord()
           
 
Method Summary
static java.lang.StringBuffer encodeDate(java.util.Date pDate)
          Returns a StringBuffer with the encoded Date Creation date: (2/8/2002 7:40:18 PM)
abstract  java.lang.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 java.lang.String TYPE_BANK
Bank account transactions

See Also:
Constant Field Values

TYPE_CASH

public static final java.lang.String TYPE_CASH
Cash account transactions

See Also:
Constant Field Values

TYPE_CREDIT_CARD

public static final java.lang.String TYPE_CREDIT_CARD
Credit card account transactions

See Also:
Constant Field Values

TYPE_INVESTMENT

public static final java.lang.String TYPE_INVESTMENT
Investment account transactions

See Also:
Constant Field Values

TYPE_ASSET

public static final java.lang.String TYPE_ASSET
Asset account transactions

See Also:
Constant Field Values

TYPE_LIABILITY

public static final java.lang.String TYPE_LIABILITY
Liability account transactions

See Also:
Constant Field Values

TYPE_INVOICE

public static final java.lang.String TYPE_INVOICE
Invouce Account

See Also:
Constant Field Values

TYPE_TAX

public static final java.lang.String TYPE_TAX
Tax account

See Also:
Constant Field Values

TYPE_BILL

public static final java.lang.String TYPE_BILL
Bill Account

See Also:
Constant Field Values

TYPE_CATEGORY_LIST

public static final java.lang.String TYPE_CATEGORY_LIST
Category list

See Also:
Constant Field Values

TYPE_CLASS_LIST

public static final java.lang.String TYPE_CLASS_LIST
Class list

See Also:
Constant Field Values

TYPE_MEMORIZED

public static final java.lang.String TYPE_MEMORIZED
Memorized transaction list

See Also:
Constant Field Values

TYPE_SECURITY

public static final java.lang.String TYPE_SECURITY
Securities List

See Also:
Constant Field Values

TYPE_PRICES

public static final java.lang.String TYPE_PRICES
Security Prices List

See Also:
Constant Field Values

TYPE_BUDGET

public static final java.lang.String TYPE_BUDGET
Budgets Lists

See Also:
Constant Field Values

TYPE_INVOICE_ITEM

public static final java.lang.String TYPE_INVOICE_ITEM
Invoice items list

See Also:
Constant Field Values

TYPE_TEMPLATE

public static final java.lang.String TYPE_TEMPLATE
Template

See Also:
Constant Field Values

RECORD_ACCOUNT

public static final java.lang.String RECORD_ACCOUNT
See Also:
Constant Field Values

RECORD_TYPE

public static final java.lang.String RECORD_TYPE
See Also:
Constant Field Values

RECORD_END

public static final java.lang.String RECORD_END
See Also:
Constant Field Values

RECORD_OPTION

public static final java.lang.String RECORD_OPTION
See Also:
Constant Field Values

RECORD_CLEAR

public static final java.lang.String RECORD_CLEAR
See Also:
Constant Field Values

OPTION_ALL_TRANSFER

public static final java.lang.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 java.lang.String OPTION_AUTOSWITCH
Start of the Accounts List Records

See Also:
Constant Field Values

CLEAR_AUTOSWITCH

public static final java.lang.String CLEAR_AUTOSWITCH
End of the Accounts List

See Also:
Constant Field Values
Constructor Detail

QIFRecord

public QIFRecord()
Method Detail

encodeDate

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


toStringBuffer

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