jgnash.imports
Class ImportTransaction

java.lang.Object
  extended by jgnash.imports.ImportTransaction
Direct Known Subclasses:
OfxTransaction

public class ImportTransaction
extends java.lang.Object

Common interface for imported transactions from OFX and mt940

Author:
Craig Cavanaugh, Arnout Engelen, Nicolas Bouillon

Nested Class Summary
static class ImportTransaction.ImportState
           
 
Field Summary
 Account account
          Destination account
 java.math.BigDecimal amount
          Deposits get positive 'amounts', withdrawals negative
 java.lang.String checkNumber
           
 java.util.Date datePosted
           
 java.util.Date dateUser
          Date user initiated the transaction, optional, may be null
 java.lang.String memo
           
 java.lang.String payee
           
private  ImportTransaction.ImportState state
           
 
Constructor Summary
protected ImportTransaction()
           
  ImportTransaction(Account account, java.math.BigDecimal amount, java.util.Date datePosted, java.lang.String memo)
           
 
Method Summary
 ImportTransaction.ImportState getState()
           
 void setState(ImportTransaction.ImportState state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

account

public Account account
Destination account


amount

public java.math.BigDecimal amount
Deposits get positive 'amounts', withdrawals negative


datePosted

public java.util.Date datePosted

dateUser

public java.util.Date dateUser
Date user initiated the transaction, optional, may be null


memo

public java.lang.String memo

payee

public java.lang.String payee

checkNumber

public java.lang.String checkNumber

state

private ImportTransaction.ImportState state
Constructor Detail

ImportTransaction

protected ImportTransaction()

ImportTransaction

public ImportTransaction(Account account,
                         java.math.BigDecimal amount,
                         java.util.Date datePosted,
                         java.lang.String memo)
Method Detail

getState

public ImportTransaction.ImportState getState()

setState

public void setState(ImportTransaction.ImportState state)