| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AccountType |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Created on Jul 30, 2007 by wyatt | |
| 3 | */ | |
| 4 | package org.homeunix.thecave.buddi.model; | |
| 5 | ||
| 6 | import org.homeunix.thecave.buddi.plugin.api.exception.InvalidValueException; | |
| 7 | ||
| 8 | ||
| 9 | public interface AccountType extends ModelObject, Expandable { | |
| 10 | ||
| 11 | /** | |
| 12 | * Returns the name of this account type | |
| 13 | * @return | |
| 14 | */ | |
| 15 | public String getName(); | |
| 16 | ||
| 17 | /** | |
| 18 | * Does this account type represent a credit account? | |
| 19 | * @return | |
| 20 | */ | |
| 21 | public boolean isCredit(); | |
| 22 | ||
| 23 | /** | |
| 24 | * Set the credit value of this account type | |
| 25 | * @param credit | |
| 26 | * @throws InvalidValueException | |
| 27 | */ | |
| 28 | public void setCredit(boolean credit) throws InvalidValueException; | |
| 29 | ||
| 30 | /** | |
| 31 | * Sets the name of this account type | |
| 32 | * @param name | |
| 33 | * @throws InvalidValueException | |
| 34 | */ | |
| 35 | public void setName(String name) throws InvalidValueException; | |
| 36 | } |