|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.homeunix.thecave.buddi.model.impl.ModelObjectImpl
org.homeunix.thecave.buddi.model.impl.SourceImpl
org.homeunix.thecave.buddi.model.impl.BudgetCategoryImpl
public class BudgetCategoryImpl
Default implementation of an BudgetCategory. You should not create this object directly; instead, please use the ModelFactory to create it, as this will ensure that all required fields are correctly set.
| Field Summary |
|---|
| Fields inherited from class org.homeunix.thecave.buddi.model.impl.SourceImpl |
|---|
deleted, name, notes |
| Fields inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl |
|---|
document, modifiedTime, uid |
| Constructor Summary | |
|---|---|
BudgetCategoryImpl()
|
|
| Method Summary | |
|---|---|
int |
compareTo(ModelObject arg0)
|
java.util.List<BudgetCategory> |
getAllChildren()
Returns a list of all children for this budget category, inluding deleted ones. |
long |
getAmount(java.util.Date periodDate)
Returns the budgeted amount associated with the given budget category, for the date in which the given period date exists. |
long |
getAmount(java.util.Date startDate,
java.util.Date endDate)
Returns the budgeted amount associated with this budget category, over the given date range. |
java.util.Map<java.lang.String,java.lang.Long> |
getAmounts()
|
java.util.List<java.util.Date> |
getBudgetedDates()
Returns a list of all dates for this budget period which have budget information set for them. |
java.util.List<java.lang.String> |
getBudgetPeriods(java.util.Date startDate,
java.util.Date endDate)
Returns a list of BudgetPeriods, covering the entire range of periods occupied by startDate to endDate. |
BudgetCategoryType |
getBudgetPeriodType()
Returns the Budget Period type. |
java.util.List<BudgetCategory> |
getChildren()
Returns a list of children for this budget category. |
java.lang.String |
getFullName()
Returns the full name of this source. |
BudgetCategory |
getParent()
Returns the parent budget category |
BudgetCategoryType |
getPeriodType()
|
boolean |
isExpanded()
Is the node currently expanded |
boolean |
isIncome()
Does this budget category represent an income category? |
void |
setAmount(java.util.Date periodDate,
long amount)
Sets the budgeted amount for the given time period. |
void |
setAmounts(java.util.Map<java.lang.String,java.lang.Long> amounts)
|
void |
setDeleted(boolean deleted)
Sets the deleted status of this source. |
void |
setExpanded(boolean expanded)
Should the node be expanded |
void |
setIncome(boolean income)
Sets the income flag on this budget category |
void |
setName(java.lang.String name)
Sets the name of this source. |
void |
setParent(BudgetCategory parent)
Sets the parent for this budget category. |
void |
setPeriodType(BudgetCategoryType periodType)
Sets the Budget Period type. |
| Methods inherited from class org.homeunix.thecave.buddi.model.impl.SourceImpl |
|---|
getName, getNotes, isDeleted, setNotes, toString |
| Methods inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl |
|---|
equals, getDocument, getModified, getUid, setChanged, setDocument, setModified, setModified, setUid |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.homeunix.thecave.buddi.model.Source |
|---|
getName, getNotes, isDeleted, setNotes |
| Methods inherited from interface org.homeunix.thecave.buddi.model.ModelObject |
|---|
getDocument, getModified, getUid, setChanged, setDocument |
| Constructor Detail |
|---|
public BudgetCategoryImpl()
| Method Detail |
|---|
public java.util.Map<java.lang.String,java.lang.Long> getAmounts()
public void setAmounts(java.util.Map<java.lang.String,java.lang.Long> amounts)
public long getAmount(java.util.Date periodDate)
getAmount in interface BudgetCategoryperiodDate -
public void setDeleted(boolean deleted)
throws InvalidValueException
Source
setDeleted in interface SourcesetDeleted in class SourceImplInvalidValueExceptionpublic java.util.List<BudgetCategory> getChildren()
BudgetCategory
getChildren in interface BudgetCategorypublic java.util.List<BudgetCategory> getAllChildren()
BudgetCategory
getAllChildren in interface BudgetCategory
public long getAmount(java.util.Date startDate,
java.util.Date endDate)
BudgetCategory
getAmount in interface BudgetCategory
public java.util.List<java.lang.String> getBudgetPeriods(java.util.Date startDate,
java.util.Date endDate)
startDate - endDate -
public void setAmount(java.util.Date periodDate,
long amount)
setAmount in interface BudgetCategoryperiodDate - amount - public BudgetCategoryType getPeriodType()
public void setPeriodType(BudgetCategoryType periodType)
BudgetCategory
setPeriodType in interface BudgetCategorypublic boolean isIncome()
BudgetCategory
isIncome in interface BudgetCategorypublic void setIncome(boolean income)
BudgetCategory
setIncome in interface BudgetCategory
public void setName(java.lang.String name)
throws InvalidValueException
Source
setName in interface SourcesetName in class SourceImplInvalidValueExceptionpublic BudgetCategory getParent()
BudgetCategory
getParent in interface BudgetCategorypublic void setParent(BudgetCategory parent)
BudgetCategory
setParent in interface BudgetCategorypublic boolean isExpanded()
Expandable
isExpanded in interface Expandablepublic void setExpanded(boolean expanded)
Expandable
setExpanded in interface Expandablepublic java.lang.String getFullName()
Source
getFullName in interface Sourcepublic BudgetCategoryType getBudgetPeriodType()
getBudgetPeriodType in interface BudgetCategorypublic int compareTo(ModelObject arg0)
compareTo in interface java.lang.Comparable<ModelObject>compareTo in interface ModelObjectcompareTo in class ModelObjectImplpublic java.util.List<java.util.Date> getBudgetedDates()
BudgetCategory
getBudgetedDates in interface BudgetCategory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||