|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.pcube.apps.engage.policy.AddOnGroupArray
public class AddOnGroupArray
An array of addongroups. this AddOnGroupArray belongs to a Policy. It holds MAX_ADD_ON_GROUPS Packages, but not all of them are used. An unused Package in the array is considered as non existing.
| Constructor Summary | |
|---|---|
AddOnGroupArray(Policy policy)
AddOnGroupArray Constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(AddOnGroup item)
Adds the AddOnGroup to this AddOnGroupArray. |
java.lang.Object |
clone()
Producing an identical object to this object. |
boolean |
contains(AddOnGroup item)
Checks if the AddOnGroup is in this AddOnGroupArray. |
boolean |
contains(java.lang.String item)
Checks if a AddOnGroup bearing the specific name is in this AddOnGroupArray. |
void |
fromStream(java.io.BufferedReader in,
Formatter f)
Reading this object from a BufferedReader |
AddOnGroup |
getAddOnGroup(java.lang.String addonGroupName)
Gets the AddOnGroup from this AddOnGroupArray by the AddOnGroup's name. |
java.lang.String[] |
getAddOnNames()
Gets the names of the addongroups in this AddOnGroupArray. |
AddOnGroup |
getAt(int index)
Gets the AddOnGroup in this AddOnGroupArray in the specific index. |
int |
getIndexOfItem(java.lang.String addonGroupName)
Gets the index of the AddOnGroup bearing the specific name in this PackageArray. |
int |
getSize()
Gets the number of valid addongroups in this AddOnGroupArray. |
boolean |
isAddOnGroupIndexUsed(int index)
Checks if a certain index is occupied in this AddOnGroupArray. |
java.util.Iterator |
iterator()
|
java.util.Iterator |
iterator(boolean includeUnknownSubs)
|
boolean |
remove(int index)
Removes the AddOnGroup that is in a certain index in this AddOnGroupArray. |
boolean |
remove(java.lang.String item)
Removes the AddOnGroup bearing a specific name from this AddOnGroupArray. |
void |
setAddOnGroupIndex(java.lang.String addOnGroupName,
int newIndex)
Sets the index for the AddOnGroup bearing the specific name in this AddOnGroupArray. |
void |
toStream(java.io.PrintStream out,
Formatter f)
Writing this object to a PrintStream |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AddOnGroupArray(Policy policy)
policy - the policy this AddOnGroupArray belongs to| Method Detail |
|---|
public boolean add(AddOnGroup item)
throws DuplicateItemException
item - the AddOnGroup to add
DuplicateItemException - if a AddOnGroup with duplicate parameters is already in this
AddOnGroupArray
java.lang.IndexOutOfBoundsException - if this AddOnGroupArray is full with MAX_ADD_ON_GROUPS addongroupspublic java.lang.Object clone()
clone in class java.lang.Objectpublic boolean contains(AddOnGroup item)
item - the queried AddOnGroup
public boolean contains(java.lang.String item)
item - the desired AddOnGroup name
public void fromStream(java.io.BufferedReader in,
Formatter f)
throws ImportExportException
fromStream in interface Formattablein - the BufferedReaderf - the formatter used to read this object from the BufferedReader
ImportExportException
public AddOnGroup getAt(int index)
throws ItemNotFoundException
index - the index of the AddOnGroup in this AddOnGroupArray
ItemNotFoundException - if the index is out of bound or the AddOnGroup in the index
is not usedpublic int getIndexOfItem(java.lang.String addonGroupName)
addonGroupName - the desired AddOnGroup name
public AddOnGroup getAddOnGroup(java.lang.String addonGroupName)
throws ItemNotFoundException
addonGroupName - the desired AddOnGroup's name
ItemNotFoundException - if the AddOnGroup is not found in this AddOnGroupArraypublic java.lang.String[] getAddOnNames()
public int getSize()
isAddOnGroupIndexUsed(int)public boolean isAddOnGroupIndexUsed(int index)
index - the index in this AddOnGroupArray
public java.util.Iterator iterator()
public java.util.Iterator iterator(boolean includeUnknownSubs)
public boolean remove(int index)
throws ItemNotFoundException
index - the removed AddOnGroup's index in this AddOnGroupArray
ItemNotFoundException
public boolean remove(java.lang.String item)
throws ItemNotFoundException
item - the removed AddOnGroup's name
ItemNotFoundException - if a AddOnGroup bearing such a name does not exist in this
AddOnGroupArray
public void setAddOnGroupIndex(java.lang.String addOnGroupName,
int newIndex)
throws ItemNotFoundException
addOnGroupName - the AddOnGroup's namenewIndex - the new AddOnGroup's index
ItemNotFoundException - if a AddOnGroup bearing such a name does not exist in this
AddOnGroupArray
public void toStream(java.io.PrintStream out,
Formatter f)
toStream in interface Formattableout - the PrintStreamf - the formatter used to write this object
|
Cisco Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||