com.greenpepper.samples.application.bank.LimitOfWithdrawal Maven / Gradle / Ivy
package com.greenpepper.samples.application.bank;
/**
* LimitOfWithdrawal class.
*
* @author oaouattara
* @version $Id: $Id
*/
public class LimitOfWithdrawal
{
private AccountType accountType;
private WithdrawType withdrawType;
/**
* Getter for the field accountType
.
*
* @return a {@link com.greenpepper.samples.application.bank.AccountType} object.
*/
public AccountType getAccountType()
{
return accountType;
}
/**
* Setter for the field accountType
.
*
* @param accountType a {@link com.greenpepper.samples.application.bank.AccountType} object.
*/
public void setAccountType(AccountType accountType)
{
this.accountType = accountType;
}
/**
* Getter for the field withdrawType
.
*
* @return a {@link com.greenpepper.samples.application.bank.WithdrawType} object.
*/
public WithdrawType getWithdrawType()
{
return withdrawType;
}
/**
* Setter for the field withdrawType
.
*
* @param withdrawType a {@link com.greenpepper.samples.application.bank.WithdrawType} object.
*/
public void setWithdrawType(WithdrawType withdrawType)
{
this.withdrawType = withdrawType;
}
/**
* getLimit.
*
* @return a {@link com.greenpepper.samples.application.bank.Money} object.
*/
public Money getLimit()
{
return accountType.limitFor(withdrawType);
}
}