|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.opencms.util.CmsIdentifiableObjectContainer
Default implementation of a named object container.
It can handle relative or absolute orderings and unique names.
| Constructor Summary | |
CmsIdentifiableObjectContainer(boolean uniqueIds,
boolean relativeOrdered)
Default Constructor. |
|
| Method Summary | |
void |
addIdentifiableObject(String id,
Object idObject)
Appends the specified object to the end of this container. |
void |
addIdentifiableObject(String id,
Object idObject,
float position)
Inserts the specified object at the specified position in this container. |
void |
clear()
Resets the container. |
List |
elementList()
Returns the list of objects. |
Object |
getObject(String id)
Returns the object with the given id. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CmsIdentifiableObjectContainer(boolean uniqueIds,
boolean relativeOrdered)
uniqueIds - if the list show check for unique idsrelativeOrdered - if the list show use relative ordering, instead of absolute ordering| Method Detail |
public void addIdentifiableObject(String id,
Object idObject)
I_CmsIdentifiableObjectContainer
addIdentifiableObject in interface I_CmsIdentifiableObjectContainerid - the object identifieridObject - the object add to the containerI_CmsIdentifiableObjectContainer.addIdentifiableObject(java.lang.String, java.lang.Object)
public void addIdentifiableObject(String id,
Object idObject,
float position)
I_CmsIdentifiableObjectContainerShifts the object currently at that position (if any) and any subsequent objects to the right (adds one to their indices).
addIdentifiableObject in interface I_CmsIdentifiableObjectContainerid - the object identifieridObject - the object add to the containerposition - the insertion pointI_CmsIdentifiableObjectContainer.addIdentifiableObject(java.lang.String, java.lang.Object, float)public void clear()
I_CmsIdentifiableObjectContainer
clear in interface I_CmsIdentifiableObjectContainerI_CmsIdentifiableObjectContainer.clear()public List elementList()
I_CmsIdentifiableObjectContainer
elementList in interface I_CmsIdentifiableObjectContainerObjects.I_CmsIdentifiableObjectContainer.elementList()public Object getObject(String id)
If uniqueIds is set to false an
containing a Object with all the objects with the given id is returned.List
If the container no contains any object with the given id, null is returned.
getObject in interface I_CmsIdentifiableObjectContainerid - the id of the object
nullI_CmsIdentifiableObjectContainer.getObject(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||