com.moneydance.apps.md.model
Class InvestFields

java.lang.Object
  extended by com.moneydance.apps.md.model.InvestFields

public class InvestFields
extends java.lang.Object

InvestField objects know how to extract the relevant fields from investment transactions so that they can be more easily edited and displayed.


Field Summary
 long amount
           
 Account category
           
 java.lang.String checkNum
           
 CurrencyType curr
           
 int date
           
 boolean debug
           
 long fee
           
 Account feeAcct
           
 boolean hasAmount
           
 boolean hasCategory
           
 boolean hasFee
           
 boolean hasMemo
           
 boolean hasPrice
           
 boolean hasSecurity
           
 boolean hasShares
           
 boolean hasXfrAcct
           
 java.lang.String memo
           
 boolean negateCategory
           
 boolean negateSecurity
           
 java.lang.String payee
           
 double price
           
 CurrencyType secCurr
           
 Account security
           
 long shares
           
 byte status
           
 int taxDate
           
 InvestTxnType txnType
           
 Account xfrAcct
           
 
Constructor Summary
InvestFields()
           
 
Method Summary
static double safeRate(double rate)
          If the given rate is zero, return a number that can be used as a denominator, otherwise,
 void setFieldStatus(AbstractTxn txn)
           
 void setFieldStatus(InvestTxnType txnType, AbstractTxn txn)
           
 void storeFields(ParentTxn txn)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hasPrice

public boolean hasPrice

hasSecurity

public boolean hasSecurity

hasShares

public boolean hasShares

hasFee

public boolean hasFee

hasCategory

public boolean hasCategory

hasXfrAcct

public boolean hasXfrAcct

hasAmount

public boolean hasAmount

hasMemo

public boolean hasMemo

negateSecurity

public boolean negateSecurity

negateCategory

public boolean negateCategory

curr

public CurrencyType curr

secCurr

public CurrencyType secCurr

date

public int date

taxDate

public int taxDate

txnType

public InvestTxnType txnType

checkNum

public java.lang.String checkNum

payee

public java.lang.String payee

memo

public java.lang.String memo

status

public byte status

amount

public long amount

shares

public long shares

price

public double price

security

public Account security

category

public Account category

xfrAcct

public Account xfrAcct

feeAcct

public Account feeAcct

fee

public long fee

debug

public boolean debug
Constructor Detail

InvestFields

public InvestFields()
Method Detail

setFieldStatus

public void setFieldStatus(AbstractTxn txn)

setFieldStatus

public void setFieldStatus(InvestTxnType txnType,
                           AbstractTxn txn)

storeFields

public void storeFields(ParentTxn txn)

safeRate

public static final double safeRate(double rate)
If the given rate is zero, return a number that can be used as a denominator, otherwise,


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object