|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Generic Builder Container Interface Container facility that organizes the objects by volume number and/or object category number. This class is typically called by a Concrete Builder class. Recommended storage is through the use of HashMaps, although other techniques may be used as well. This class will perform all sorting and lookup functions internally. Each object should be tagged with a unique lookup integer, which is indicated by refNum in the interface specification below.
| Method Summary | |
void |
add(java.lang.Object addThis)
Add provided object to the container |
java.lang.Object |
get(int refNum)
Find and return the object matching to refNum |
java.lang.Object |
getNext()
Get next object from established iterator list. |
int |
iterate()
|
int |
iterate(int catNum)
|
int |
iterate(int volNum,
int catNum)
Locate all objects belonging to volume volNum and of category catNum. |
boolean |
locate(int refNum)
Locate the object matching to refNum and return true if found |
java.lang.Object |
remove(int refNum)
Remove the object matching to refNum |
| Method Detail |
public void add(java.lang.Object addThis)
throws java.lang.Exception
java.lang.Exception
public java.lang.Object get(int refNum)
throws ContainerException
ContainerException
public java.lang.Object remove(int refNum)
throws ContainerException
ContainerException
public boolean locate(int refNum)
throws ContainerException
ContainerException
public int iterate(int volNum,
int catNum)
public int iterate(int catNum)
public int iterate()
public java.lang.Object getNext()
throws ContainerException
ContainerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||