|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.portal.coplets.basket.AbstractItem
public class AbstractItem
This is a possible base class for item implementations. It just adds attributes (or meta-data) functionality
Field Summary | |
---|---|
protected Map |
attributes
The attributes |
protected static long |
currentId
|
protected long |
id
Unique id |
Constructor Summary | |
---|---|
AbstractItem()
|
Method Summary | |
---|---|
Object |
getAttribute(String name)
Return an attribute or null |
Iterator |
getAttributeNames()
Get all attribute names |
long |
getId()
|
boolean |
hasAttribute(String name)
Check if an attribute is available |
void |
removeAttribute(String name)
Remove one attribute |
void |
setAttribute(String name,
Object value)
Set an attribute |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static long currentId
protected Map attributes
protected long id
Constructor Detail |
---|
public AbstractItem()
Method Detail |
---|
public Object getAttribute(String name)
public void setAttribute(String name, Object value)
public Iterator getAttributeNames()
public void removeAttribute(String name)
public boolean hasAttribute(String name)
public long getId()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |