|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Collection is a set of Java objects.
iFS uses Collections to provide an easy-to-use API to access various sets
of LIBRARYOBJECTs. LibrarySession and S_LibrarySession provide several
methods, getcollectionCollection
, to access the
Collections they maintain.
Collection implementations may cache the items they contain. For this reason, Collections are more performant than Selectors or S_Selectors.
For performance, applications iterating over the items in a Collection
should use getItems()
rather than getItems(int)
.
Method Summary | |
int |
getItemCount()
Gets the number of items in this Collection. |
java.lang.Object[] |
getItems()
Gets an array containing the items in this Collection. |
java.lang.Object |
getItems(int index)
Gets the specified item in this Collection. |
java.lang.Object |
getItems(java.lang.String name)
Gets the specified item in this Collection. |
java.util.Vector |
getItemsVector()
Gets a vector containing the items in this Collection. |
Methods inherited from interface oracle.ifs.common.IfsEventHandler |
handleEvent |
Method Detail |
public int getItemCount() throws IfsException
IfsException
- (IFS-12211) if the operation failspublic java.lang.Object[] getItems() throws IfsException
IfsException
- (IFS-12212) if the operation failspublic java.lang.Object getItems(int index) throws IfsException
index
- the zero-based index of the itemIfsException
- (IFS-12213) if the operation failspublic java.lang.Object getItems(java.lang.String name) throws IfsException
name
- the name of the itemIfsException
- (IFS-12214) if the operation failspublic java.util.Vector getItemsVector() throws IfsException
The order of the items in the vector is identical to the order of the
items in the array returned by getItems()
.
IfsException
- (IFS-12215) if the operation fails
|
Oracle Content Management SDK | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |