public class CostCenterContainerImpl extends java.lang.Object implements CostCenterContainer
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
protected static java.lang.String |
COST_CENTERS |
| Constructor and Description |
|---|
CostCenterContainerImpl()
Constructs a CostCenterContainerImpl object.
|
CostCenterContainerImpl(MutableRepositoryItem pRepositoryItem)
Constructs a CostCenterContainerImpl object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCostCenter(CostCenter pCostCenter)
Add the CostCenter to the container.
|
void |
addCostCenter(CostCenter pCostCenter,
int pIndex)
Add the CostCenter to the container at the given index.
|
CostCenter |
getCostCenter(java.lang.String pCostCenterId)
Returns the CostCenter whose id is pCostCenterId.
|
int |
getCostCenterCount()
Returns the number of CostCenters in the container.
|
java.util.List |
getCostCenters()
Returns a List of CostCenters.
|
protected java.util.List |
getRepositoryItemList() |
void |
removeAllCostCenters()
Removes all the CostCenters
|
CostCenter |
removeCostCenter(java.lang.String pCostCenterId)
Removes a CostCenter whose id is passed in.
|
public static java.lang.String CLASS_VERSION
protected static java.lang.String COST_CENTERS
public CostCenterContainerImpl()
public CostCenterContainerImpl(MutableRepositoryItem pRepositoryItem)
protected java.util.List getRepositoryItemList()
public java.util.List getCostCenters()
getCostCenters in interface CostCenterContainerpublic void addCostCenter(CostCenter pCostCenter) throws DuplicateCostCenterException, InvalidParameterException
addCostCenter in interface CostCenterContainerDuplicateCostCenterExceptionInvalidParameterExceptionpublic void addCostCenter(CostCenter pCostCenter, int pIndex) throws DuplicateCostCenterException, InvalidParameterException
addCostCenter in interface CostCenterContainerDuplicateCostCenterExceptionInvalidParameterExceptionpublic CostCenter removeCostCenter(java.lang.String pCostCenterId) throws CostCenterNotFoundException, InvalidParameterException
removeCostCenter in interface CostCenterContainerCostCenterNotFoundExceptionInvalidParameterExceptionpublic void removeAllCostCenters()
removeAllCostCenters in interface CostCenterContainerpublic CostCenter getCostCenter(java.lang.String pCostCenterId) throws CostCenterNotFoundException, InvalidParameterException
getCostCenter in interface CostCenterContainerCostCenterNotFoundExceptionInvalidParameterExceptionpublic int getCostCenterCount()
getCostCenterCount in interface CostCenterContainer