|
|||||||||
| 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.impl.ImmutableModelObjectImpl
org.homeunix.thecave.buddi.plugin.api.model.impl.MutableModelObjectImpl
org.homeunix.thecave.buddi.plugin.api.model.impl.MutableDocumentImpl
public class MutableDocumentImpl
| Constructor Summary | |
|---|---|
MutableDocumentImpl(Document model)
|
|
| Method Summary | |
|---|---|
void |
addAccount(MutableAccount account)
Adds an account to the model |
void |
addAccountType(MutableAccountType type)
Adds a type to the model |
void |
addBudgetCategory(MutableBudgetCategory budgetCategory)
Adds a budget category to the model |
void |
addScheduledTransaction(MutableScheduledTransaction scheduledTransaction)
Adds a scheduled transaction to the model |
void |
addTransaction(MutableTransaction transaction)
Adds a transaction to the model |
MutableAccount |
getAccount(java.lang.String name)
Returns the account referenced by the given name. |
MutableAccountType |
getAccountType(java.lang.String name)
Returns the type referenced by the given name. |
MutableBudgetCategory |
getBudgetCategory(java.lang.String fullName)
Returns the budget category referenced by the given full name. |
ImmutableBudgetCategoryType |
getBudgetCategoryType(BudgetCategoryTypes name)
Returns an ImmutableBudgetCategoryType object, with the given name. |
ImmutableBudgetCategoryType |
getBudgetCategoryType(java.lang.String name)
Returns an ImmutableBudgetCategoryType object, with the given name. |
java.util.List<ImmutableAccount> |
getImmutableAccounts()
Returns a list of all immutable accounts in the model |
java.util.List<ImmutableAccountType> |
getImmutableAccountTypes()
Returns a list of all immutable types in the model |
java.util.List<ImmutableBudgetCategory> |
getImmutableBudgetCategories()
Returns a list of all immutable budget categories in the model |
java.util.List<ImmutableTransaction> |
getImmutableTransactions()
Returns a list of all immutable transactions in the model |
java.util.List<ImmutableTransaction> |
getImmutableTransactions(java.util.Date startDate,
java.util.Date endDate)
Returns a list of all immutable transactions in the model which are between startDate and endDate |
java.util.List<ImmutableTransaction> |
getImmutableTransactions(ImmutableSource source)
Returns a list of all immutable transactions in the model which are associatd with the given source |
java.util.List<ImmutableTransaction> |
getImmutableTransactions(ImmutableSource source,
java.util.Date startDate,
java.util.Date endDate)
Returns a list of all immutable transactions in the model which are associated with source and between startDate and endDate |
Document |
getModel()
Returns the wrapped object from the underlying data model. |
java.util.List<MutableAccount> |
getMutableAccounts()
Returns a list of all immutable accounts in the model |
java.util.List<MutableAccountType> |
getMutableAccountTypes()
Returns a list of all immutable types in the model |
java.util.List<MutableBudgetCategory> |
getMutableBudgetCategories()
Returns a list of all immutable budget categories in the model |
java.util.List<MutableTransaction> |
getMutableTransactions()
Returns a list of all immutable transactions in the model |
java.util.List<MutableTransaction> |
getMutableTransactions(java.util.Date startDate,
java.util.Date endDate)
Returns a list of all immutable transactions in the model which are between startDate and endDate |
java.util.List<MutableTransaction> |
getMutableTransactions(MutableSource source)
Returns a list of all immutable transactions in the model which are associatd with the given source |
java.util.List<MutableTransaction> |
getMutableTransactions(MutableSource source,
java.util.Date startDate,
java.util.Date endDate)
Returns a list of all immutable transactions in the model which are associated with source and between startDate and endDate |
long |
getNetWorth(java.util.Date date)
Returns the net worth in the model as of the given date. |
void |
removeAccount(MutableAccount account)
Removes the given account from the model |
void |
removeBudgetCategory(MutableBudgetCategory budgetCategory)
Removes the given budget category from the model |
void |
removeScheduledTransaction(MutableScheduledTransaction scheduledTransaction)
Removes the given scheduled transaction from the model |
void |
removeTransaction(MutableTransaction transaction)
Removes the given transaction from the model |
void |
removeType(MutableAccountType type)
Removes the given type from the model |
| Methods inherited from class org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl |
|---|
compareTo, equals, getModified, getRaw, getUid, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.model.ImmutableModelObject |
|---|
getModified, getRaw, getUid |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public MutableDocumentImpl(Document model)
| Method Detail |
|---|
public void addAccount(MutableAccount account)
throws ModelException
MutableDocument
addAccount in interface MutableDocumentModelException
public void addBudgetCategory(MutableBudgetCategory budgetCategory)
throws ModelException
MutableDocument
addBudgetCategory in interface MutableDocumentModelException
public void addScheduledTransaction(MutableScheduledTransaction scheduledTransaction)
throws ModelException
MutableDocument
addScheduledTransaction in interface MutableDocumentModelException
public void addTransaction(MutableTransaction transaction)
throws ModelException
MutableDocument
addTransaction in interface MutableDocumentModelException
public void addAccountType(MutableAccountType type)
throws ModelException
MutableDocument
addAccountType in interface MutableDocumentModelException
public void removeAccount(MutableAccount account)
throws ModelException
MutableDocument
removeAccount in interface MutableDocumentModelException
public void removeBudgetCategory(MutableBudgetCategory budgetCategory)
throws ModelException
MutableDocument
removeBudgetCategory in interface MutableDocumentModelException
public void removeScheduledTransaction(MutableScheduledTransaction scheduledTransaction)
throws ModelException
MutableDocument
removeScheduledTransaction in interface MutableDocumentModelException
public void removeTransaction(MutableTransaction transaction)
throws ModelException
MutableDocument
removeTransaction in interface MutableDocumentModelException
public void removeType(MutableAccountType type)
throws ModelException
MutableDocument
removeType in interface MutableDocumentModelExceptionpublic MutableAccount getAccount(java.lang.String name)
ImmutableDocument
getAccount in interface ImmutableDocumentgetAccount in interface MutableDocumentpublic java.util.List<MutableAccount> getMutableAccounts()
MutableDocument
getMutableAccounts in interface MutableDocumentpublic java.util.List<MutableBudgetCategory> getMutableBudgetCategories()
MutableDocument
getMutableBudgetCategories in interface MutableDocumentpublic MutableBudgetCategory getBudgetCategory(java.lang.String fullName)
ImmutableDocument
getBudgetCategory in interface ImmutableDocumentgetBudgetCategory in interface MutableDocumentpublic Document getModel()
ImmutableDocument
getModel in interface ImmutableDocumentgetModel in interface MutableDocumentpublic java.util.List<MutableTransaction> getMutableTransactions()
MutableDocument
getMutableTransactions in interface MutableDocument
public java.util.List<MutableTransaction> getMutableTransactions(java.util.Date startDate,
java.util.Date endDate)
MutableDocument
getMutableTransactions in interface MutableDocumentpublic java.util.List<MutableTransaction> getMutableTransactions(MutableSource source)
MutableDocument
getMutableTransactions in interface MutableDocument
public java.util.List<MutableTransaction> getMutableTransactions(MutableSource source,
java.util.Date startDate,
java.util.Date endDate)
MutableDocument
getMutableTransactions in interface MutableDocumentpublic MutableAccountType getAccountType(java.lang.String name)
ImmutableDocument
getAccountType in interface ImmutableDocumentgetAccountType in interface MutableDocumentpublic java.util.List<MutableAccountType> getMutableAccountTypes()
MutableDocument
getMutableAccountTypes in interface MutableDocumentpublic java.util.List<ImmutableAccount> getImmutableAccounts()
ImmutableDocument
getImmutableAccounts in interface ImmutableDocumentpublic java.util.List<ImmutableBudgetCategory> getImmutableBudgetCategories()
ImmutableDocument
getImmutableBudgetCategories in interface ImmutableDocumentpublic java.util.List<ImmutableTransaction> getImmutableTransactions()
ImmutableDocument
getImmutableTransactions in interface ImmutableDocument
public java.util.List<ImmutableTransaction> getImmutableTransactions(java.util.Date startDate,
java.util.Date endDate)
ImmutableDocument
getImmutableTransactions in interface ImmutableDocumentpublic java.util.List<ImmutableTransaction> getImmutableTransactions(ImmutableSource source)
ImmutableDocument
getImmutableTransactions in interface ImmutableDocument
public java.util.List<ImmutableTransaction> getImmutableTransactions(ImmutableSource source,
java.util.Date startDate,
java.util.Date endDate)
ImmutableDocument
getImmutableTransactions in interface ImmutableDocumentpublic java.util.List<ImmutableAccountType> getImmutableAccountTypes()
ImmutableDocument
getImmutableAccountTypes in interface ImmutableDocumentpublic ImmutableBudgetCategoryType getBudgetCategoryType(BudgetCategoryTypes name)
ImmutableDocument
getBudgetCategoryType in interface ImmutableDocumentpublic ImmutableBudgetCategoryType getBudgetCategoryType(java.lang.String name)
ImmutableDocument
getBudgetCategoryType in interface ImmutableDocumentpublic long getNetWorth(java.util.Date date)
ImmutableDocument
getNetWorth in interface ImmutableDocumentdate - The date on which to calculate the net worth. Set this to null to return
the balance as of the last transaction.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||