|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.portal.coplets.basket.ContentStore
This is a per user store that can contain any object. Make a subclass to add your specific functionality.
Field Summary | |
protected String |
id
The id |
protected List |
items
The ordered list of items |
Constructor Summary | |
ContentStore(String id)
The constructor |
Method Summary | |
void |
addItem(Object item)
Add an item |
int |
contentSize()
Calculate the size of a basket |
String |
getId()
|
Object |
getItem(int index)
Get an item at the index |
Object |
getItem(long id)
Get an item with the id |
Iterator |
getIterator()
Get the iterator |
void |
removeItem(Object item)
Remove an item |
int |
size()
Number of items in the basket |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final List items
protected final String id
Constructor Detail |
public ContentStore(String id)
Method Detail |
public String getId()
public Object getItem(int index)
public void addItem(Object item)
public Iterator getIterator()
public void removeItem(Object item)
public int size()
public int contentSize()
public Object getItem(long id)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |