|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.buddi.plugin.api.model.MutableModelFactory
public class MutableModelFactory
| Constructor Summary | |
|---|---|
MutableModelFactory()
|
|
| Method Summary | |
|---|---|
static MutableDocument |
createDocument()
Creates a new MutableModel, with the default budget categories, types, etc. |
static MutableDocument |
createDocument(java.io.File file)
Loads an existing MutableModel from the specified file. |
static MutableAccount |
createMutableAccount(java.lang.String name,
long startingBalance,
MutableAccountType type)
Creates a new MutableAccount with the given details. |
static MutableAccountType |
createMutableAccountType(java.lang.String name,
boolean credit)
Creates a new MutableAccountType with the given details. |
static MutableBudgetCategory |
createMutableBudgetCategory(java.lang.String name,
ImmutableBudgetCategoryType periodType,
boolean isIncome)
Creates a new MutableBudgetCategory with the given details. |
static MutableScheduledTransaction |
createMutableScheduledTransaction(java.lang.String name,
java.lang.String message,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String frequencyType,
int scheduleDay,
int scheduleWeek,
int scheduleMonth,
java.util.Date date,
java.lang.String description,
long amount,
MutableSource from,
MutableSource to)
Creates a new MutableScheduledTransaction |
static MutableTransaction |
createMutableTransaction(java.util.Date date,
java.lang.String description,
long amount,
MutableSource from,
MutableSource to)
Creates a new MutableTransaction with the given details. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MutableModelFactory()
| Method Detail |
|---|
public static MutableDocument createDocument()
throws ModelException
ModelException
public static MutableDocument createDocument(java.io.File file)
throws DocumentLoadException,
OperationCancelledException
file -
DocumentLoadException
OperationCancelledException
public static MutableAccount createMutableAccount(java.lang.String name,
long startingBalance,
MutableAccountType type)
throws ModelException
name - startingBalance - type -
ModelException
public static MutableAccountType createMutableAccountType(java.lang.String name,
boolean credit)
throws ModelException
name - credit -
ModelException
public static MutableBudgetCategory createMutableBudgetCategory(java.lang.String name,
ImmutableBudgetCategoryType periodType,
boolean isIncome)
throws ModelException
name - periodType - isIncome -
ModelException
public static MutableScheduledTransaction createMutableScheduledTransaction(java.lang.String name,
java.lang.String message,
java.util.Date startDate,
java.util.Date endDate,
java.lang.String frequencyType,
int scheduleDay,
int scheduleWeek,
int scheduleMonth,
java.util.Date date,
java.lang.String description,
long amount,
MutableSource from,
MutableSource to)
throws ModelException
ModelException
public static MutableTransaction createMutableTransaction(java.util.Date date,
java.lang.String description,
long amount,
MutableSource from,
MutableSource to)
throws ModelException
date - description - amount - from - to -
ModelException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||