|
|||||||||
| 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.MutableSourceImpl
org.homeunix.thecave.buddi.plugin.api.model.impl.MutableBudgetCategoryImpl
public class MutableBudgetCategoryImpl
| Constructor Summary | |
|---|---|
MutableBudgetCategoryImpl(BudgetCategory budgetCategory)
|
|
| Method Summary | |
|---|---|
java.util.List<MutableBudgetCategory> |
getAllChildren()
|
java.util.List<ImmutableBudgetCategory> |
getAllImmutableChildren()
Returns all children of this budget category, regardless of delete flag state. |
java.util.List<MutableBudgetCategory> |
getAllMutableChildren()
Returns all children of this budget category, regardless of delete flag state. |
long |
getAmount(java.util.Date date)
Returns the budgeted amount for the given date. |
long |
getAmount(java.util.Date startDate,
java.util.Date endDate)
Returns the budgeted amount spread across the date range. |
BudgetCategory |
getBudgetCategory()
Returns the wrapped object from the underlying data model. |
java.util.List<java.util.Date> |
getBudgetedDates()
Returns a list of all dates for this budget period which have budget information set for them. |
ImmutableBudgetCategoryType |
getBudgetPeriodType()
Returns the budget period type associated with this budget category. |
java.util.List<MutableBudgetCategory> |
getChildren()
|
java.util.List<ImmutableBudgetCategory> |
getImmutableChildren()
Returns all visible children of this budget category. |
java.util.List<MutableBudgetCategory> |
getMutableChildren()
Returns all visible children of this budget category. |
MutableBudgetCategory |
getParent()
Returns the parent of this ImmutableBudgetCategory, or null if there is no parent. |
boolean |
isIncome()
Does this ImmutableBudgetCategory represent an income category? |
void |
setAmount(java.util.Date date,
long amount)
Sets the amount for the budget period which contains the given date. |
void |
setBudgetCategoryType(ImmutableBudgetCategoryType budgetCategoryType)
Sets the budget period type associated with this budget category. |
void |
setIncome(boolean income)
Sets whether this budget category represents income or not. |
void |
setParent(MutableBudgetCategory budgetCategory)
Sets the parent of this budget category. |
java.lang.String |
toString()
|
| Methods inherited from class org.homeunix.thecave.buddi.plugin.api.model.impl.MutableSourceImpl |
|---|
getFullName, getName, getNotes, getSource, isDeleted, setDeleted, setName, setNotes |
| 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.ImmutableSource |
|---|
getFullName, getName, getNotes, getSource, isDeleted |
| Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.model.ImmutableModelObject |
|---|
getModified, getRaw, getUid |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.model.MutableSource |
|---|
setDeleted, setName, setNotes |
| Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.model.ImmutableSource |
|---|
getFullName, getName, getNotes, getSource, isDeleted |
| 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 MutableBudgetCategoryImpl(BudgetCategory budgetCategory)
| Method Detail |
|---|
public void setIncome(boolean income)
throws InvalidValueException
MutableBudgetCategory
setIncome in interface MutableBudgetCategoryInvalidValueException
public void setParent(MutableBudgetCategory budgetCategory)
throws InvalidValueException
MutableBudgetCategory
setParent in interface MutableBudgetCategoryInvalidValueExceptionpublic BudgetCategory getBudgetCategory()
ImmutableBudgetCategory
getBudgetCategory in interface ImmutableBudgetCategory
public long getAmount(java.util.Date startDate,
java.util.Date endDate)
ImmutableBudgetCategory
getAmount in interface ImmutableBudgetCategory
public void setAmount(java.util.Date date,
long amount)
throws InvalidValueException
MutableBudgetCategory
setAmount in interface MutableBudgetCategoryInvalidValueExceptionpublic long getAmount(java.util.Date date)
ImmutableBudgetCategory
getAmount in interface ImmutableBudgetCategorypublic ImmutableBudgetCategoryType getBudgetPeriodType()
ImmutableBudgetCategory
getBudgetPeriodType in interface ImmutableBudgetCategory
public void setBudgetCategoryType(ImmutableBudgetCategoryType budgetCategoryType)
throws InvalidValueException
MutableBudgetCategory
setBudgetCategoryType in interface MutableBudgetCategoryInvalidValueExceptionpublic MutableBudgetCategory getParent()
ImmutableBudgetCategory
getParent in interface ImmutableBudgetCategorygetParent in interface MutableBudgetCategorypublic boolean isIncome()
ImmutableBudgetCategory
isIncome in interface ImmutableBudgetCategorypublic java.lang.String toString()
toString in class MutableSourceImplpublic java.util.List<MutableBudgetCategory> getAllChildren()
public java.util.List<MutableBudgetCategory> getChildren()
public java.util.List<MutableBudgetCategory> getAllMutableChildren()
MutableBudgetCategory
getAllMutableChildren in interface MutableBudgetCategorypublic java.util.List<MutableBudgetCategory> getMutableChildren()
MutableBudgetCategory
getMutableChildren in interface MutableBudgetCategorypublic java.util.List<ImmutableBudgetCategory> getAllImmutableChildren()
ImmutableBudgetCategory
getAllImmutableChildren in interface ImmutableBudgetCategorypublic java.util.List<ImmutableBudgetCategory> getImmutableChildren()
ImmutableBudgetCategory
getImmutableChildren in interface ImmutableBudgetCategorypublic java.util.List<java.util.Date> getBudgetedDates()
ImmutableBudgetCategory
getBudgetedDates in interface ImmutableBudgetCategory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||