|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ObjectContainer
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 |
---|
void add(java.lang.Object addThis) throws java.lang.Exception
java.lang.Exception
java.lang.Object get(int refNum) throws ContainerException
ContainerException
java.lang.Object remove(int refNum) throws ContainerException
ContainerException
boolean locate(int refNum) throws ContainerException
ContainerException
int iterate(int volNum, int catNum)
int iterate(int catNum)
int iterate()
java.lang.Object getNext() throws ContainerException
ContainerException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |