|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.ow.server.ecm.OwObjectCollectionDelegator
public class OwObjectCollectionDelegator
An object list wrapper/delegate class. Delegates all behavior to the inner delegate. Subclasses can override certain object list methods thus lists can have their behavior "decorated".
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Field Summary |
|---|
| Fields inherited from interface com.wewebu.ow.server.ecm.OwObjectCollection |
|---|
ATTRIBUTE_IS_COMPLETE, ATTRIBUTE_SIZE, ATTRIBUTE_SQL |
| Constructor Summary | |
|---|---|
OwObjectCollectionDelegator(OwObjectCollection delegateeCollection_p)
Constructor |
|
| Method Summary | |
|---|---|
void |
add(int index_p,
Object element_p)
|
boolean |
add(Object o_p)
|
boolean |
addAll(Collection c_p)
|
boolean |
addAll(int index_p,
Collection c_p)
|
int |
attributecount()
get the number of attributes, or -1 if unknown |
void |
clear()
|
boolean |
contains(Object o_p)
|
boolean |
containsAll(Collection c_p)
|
boolean |
equals(Object o_p)
|
Object |
get(int index_p)
|
Object |
getAttribute(int index_p)
get a object at the specified index or throws OwObjectNotFoundException |
Object |
getAttribute(String strName_p)
get the attribute with the given name or throws OwObjectNotFoundException |
Collection |
getAttributeNames()
get all attribute names in the bag |
void |
getNext()
retrieve further objects, than currently added. |
void |
getPrev()
retrieve further objects, than currently added. |
Object |
getSafeAttribute(String strName_p,
Object default_p)
get the attribute with the given name, returns default if not found. |
boolean |
hasAttribute(String strName_p)
check if attribute exists |
int |
hashCode()
|
boolean |
hasNext()
check if object list has access to more next objects, than currently added. |
boolean |
hasPrev()
check if object list has access to more previous objects, than currently added. |
int |
indexOf(Object o_p)
|
boolean |
isComplete()
check if object list has retrieved all objects If false, there are more objects available, but it is not guaranteed that you can retrieve them with the next / prev functions. |
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object o_p)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index_p)
|
Object |
remove(int index_p)
|
boolean |
remove(Object o_p)
|
boolean |
removeAll(Collection c_p)
|
protected void |
replaceDelegatee(OwObjectCollection objectCollection_p)
|
boolean |
retainAll(Collection c_p)
|
Object |
set(int index_p,
Object element_p)
|
int |
size()
|
void |
sort(OwSort sortCriteria_p)
sort the list by the given criteria. |
List |
subList(int fromIndex_p,
int toIndex_p)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a_p)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OwObjectCollectionDelegator(OwObjectCollection delegateeCollection_p)
delegateeCollection_p - | Method Detail |
|---|
protected void replaceDelegatee(OwObjectCollection objectCollection_p)
objectCollection_p - the collection to replace the inner delegate with
public void add(int index_p,
Object element_p)
add in interface Listpublic boolean add(Object o_p)
add in interface Collectionadd in interface Listpublic boolean addAll(Collection c_p)
addAll in interface CollectionaddAll in interface List
public boolean addAll(int index_p,
Collection c_p)
addAll in interface Listpublic int attributecount()
OwAttributeBag
attributecount in interface OwAttributeBagpublic void clear()
clear in interface Collectionclear in interface Listpublic boolean contains(Object o_p)
contains in interface Collectioncontains in interface Listpublic boolean containsAll(Collection c_p)
containsAll in interface CollectioncontainsAll in interface Listpublic boolean equals(Object o_p)
equals in interface Collectionequals in interface Listequals in class Objectpublic Object get(int index_p)
get in interface List
public Object getAttribute(int index_p)
throws Exception
OwAttributeBag
getAttribute in interface OwAttributeBagindex_p - int index
Exception
public Object getAttribute(String strName_p)
throws Exception
OwAttributeBag
getAttribute in interface OwAttributeBagExceptionpublic Collection getAttributeNames()
OwAttributeBag
getAttributeNames in interface OwAttributeBag
public void getNext()
throws Exception
OwObjectCollection
getNext in interface OwObjectCollectionException
public void getPrev()
throws Exception
OwObjectCollection
getPrev in interface OwObjectCollectionException
public Object getSafeAttribute(String strName_p,
Object default_p)
OwAttributeBag
getSafeAttribute in interface OwAttributeBagpublic boolean hasAttribute(String strName_p)
OwAttributeBag
hasAttribute in interface OwAttributeBagpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class Object
public boolean hasNext()
throws Exception
OwObjectCollection
hasNext in interface OwObjectCollectionException
public boolean hasPrev()
throws Exception
OwObjectCollection
hasPrev in interface OwObjectCollectionExceptionpublic int indexOf(Object o_p)
indexOf in interface List
public boolean isComplete()
throws Exception
OwObjectCollection
isComplete in interface OwObjectCollectionExceptionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listpublic int lastIndexOf(Object o_p)
lastIndexOf in interface Listpublic ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int index_p)
listIterator in interface Listpublic Object remove(int index_p)
remove in interface Listpublic boolean remove(Object o_p)
remove in interface Collectionremove in interface Listpublic boolean removeAll(Collection c_p)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection c_p)
retainAll in interface CollectionretainAll in interface List
public Object set(int index_p,
Object element_p)
set in interface Listpublic int size()
size in interface Collectionsize in interface List
public void sort(OwSort sortCriteria_p)
throws Exception
OwObjectCollection
sort in interface OwObjectCollectionsortCriteria_p - list of sort criteria
Exception
public List subList(int fromIndex_p,
int toIndex_p)
subList in interface Listpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray(Object[] a_p)
toArray in interface CollectiontoArray in interface Listpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||