com.x8ing.mc.bp
Class MoneyTransaction

java.lang.Object
  extended by com.x8ing.mc.bp.MoneyTransaction

public class MoneyTransaction
extends java.lang.Object

Implements a money transaction.

Author:
Patrick Heusser

Constructor Summary
MoneyTransaction(java.lang.String bookingDescription, java.util.Calendar transactionDate, double amount, BalanceAccount balanceAccount)
           
 
Method Summary
 double getAmount()
           
 BalanceAccount getBalanceAccount()
           
 java.lang.String getBookingDescription()
           
 java.util.Calendar getTransactionDate()
           
 void setAmount(double amount)
           
 void setBalanceAccount(BalanceAccount balanceAccount)
           
 void setBookingDescription(java.lang.String bookingDescription)
           
 void setTransactionDate(java.util.Calendar transactionDate)
           
 java.lang.String toString()
           
 void toString(java.lang.StringBuffer sb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MoneyTransaction

public MoneyTransaction(java.lang.String bookingDescription,
                        java.util.Calendar transactionDate,
                        double amount,
                        BalanceAccount balanceAccount)
Parameters:
bookingDescription -
transactionDate -
amount -
Method Detail

getAmount

public double getAmount()
Returns:
Returns the amount.

setAmount

public void setAmount(double amount)
Parameters:
amount - The amount to set.

getBookingDescription

public java.lang.String getBookingDescription()
Returns:
Returns the bookingDescription.

setBookingDescription

public void setBookingDescription(java.lang.String bookingDescription)
Parameters:
bookingDescription - The bookingDescription to set.

getTransactionDate

public java.util.Calendar getTransactionDate()
Returns:
Returns the transactionDate.

setTransactionDate

public void setTransactionDate(java.util.Calendar transactionDate)
Parameters:
transactionDate - The transactionDate to set.

toString

public void toString(java.lang.StringBuffer sb)

toString

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

getBalanceAccount

public BalanceAccount getBalanceAccount()

setBalanceAccount

public void setBalanceAccount(BalanceAccount balanceAccount)


by Patrick Heusser