|
|||||||||
| 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.ImmutableDocumentImpl
public class ImmutableDocumentImpl
| Constructor Summary | |
|---|---|
ImmutableDocumentImpl(Document model)
|
|
| Method Summary | |
|---|---|
ImmutableAccount |
getAccount(java.lang.String name)
Returns the account referenced by the given name. |
ImmutableAccountType |
getAccountType(java.lang.String name)
Returns the type referenced by the given name. |
ImmutableBudgetCategory |
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. |
long |
getNetWorth(java.util.Date date)
Returns the net worth in the model as of the given date. |
java.lang.String |
toString()
|
| Methods inherited from class org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl |
|---|
compareTo, equals, getModified, getRaw, getUid, hashCode |
| 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 ImmutableDocumentImpl(Document model)
| Method Detail |
|---|
public ImmutableAccount getAccount(java.lang.String name)
ImmutableDocument
getAccount in interface ImmutableDocumentpublic java.util.List<ImmutableAccount> getImmutableAccounts()
ImmutableDocument
getImmutableAccounts in interface ImmutableDocumentpublic java.util.List<ImmutableBudgetCategory> getImmutableBudgetCategories()
ImmutableDocument
getImmutableBudgetCategories in interface ImmutableDocumentpublic ImmutableBudgetCategory getBudgetCategory(java.lang.String fullName)
ImmutableDocument
getBudgetCategory in interface ImmutableDocumentpublic Document getModel()
ImmutableDocument
getModel 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 ImmutableAccountType getAccountType(java.lang.String name)
ImmutableDocument
getAccountType in interface ImmutableDocumentpublic java.util.List<ImmutableAccountType> getImmutableAccountTypes()
ImmutableDocument
getImmutableAccountTypes in interface ImmutableDocumentpublic java.lang.String toString()
toString in class ImmutableModelObjectImplpublic 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 | ||||||||