|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
com.wewebu.ow.server.ecm.OwStandardObjectCollection
public class OwStandardObjectCollection
Standard Implementation for objects lists from the network. Implements the SUN value list pattern.
To be implemented with the specific ECM system.
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
Nested Class Summary | |
---|---|
protected class |
OwStandardObjectCollection.OwObjectCollectionComparator
sort operator used in |
Field Summary |
---|
Fields inherited from class java.util.AbstractList |
---|
modCount |
Fields inherited from interface com.wewebu.ow.server.ecm.OwObjectCollection |
---|
ATTRIBUTE_IS_COMPLETE, ATTRIBUTE_SIZE, ATTRIBUTE_SQL |
Constructor Summary | |
---|---|
OwStandardObjectCollection()
|
Method Summary | |
---|---|
int |
attributecount()
get the number of attributes, or -1 if unknown |
Object |
getAttribute(int iIndex_p)
get a object at the specified index or throws OwObjectNotFoundException |
Object |
getAttribute(String strName_p)
get the attribute with the given name |
Collection |
getAttributeNames()
get all attribute names in the bag |
void |
getNext()
overridable to retrieve further objects, than currently added. |
void |
getPrev()
overridable to 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 |
boolean |
hasNext()
overridable to check if object list has access to more next objects, than currently added. |
boolean |
hasPrev()
overridable to check if object list has access to more previous objects, than currently added. |
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. |
void |
setAttribute(String strName_p,
Object object_p)
set the attribute with the given name |
void |
setComplete(boolean fComplete_p)
set the complete flag |
void |
sort(OwSort sortCriteria_p)
sort the list by the given criteria. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Constructor Detail |
---|
public OwStandardObjectCollection()
Method Detail |
---|
public void sort(OwSort sortCriteria_p) throws Exception
sort
in interface OwObjectCollection
sortCriteria_p
- list of sortcriteria
Exception
public boolean isComplete() throws Exception
isComplete
in interface OwObjectCollection
Exception
public void setComplete(boolean fComplete_p)
public boolean hasNext() throws Exception
hasNext
in interface OwObjectCollection
Exception
public boolean hasPrev() throws Exception
hasPrev
in interface OwObjectCollection
Exception
public void getNext() throws Exception
getNext
in interface OwObjectCollection
Exception
public void getPrev() throws Exception
getPrev
in interface OwObjectCollection
Exception
public Object getAttribute(int iIndex_p) throws Exception
getAttribute
in interface OwAttributeBag
iIndex_p
- int index
Exception
public Object getSafeAttribute(String strName_p, Object default_p)
getSafeAttribute
in interface OwAttributeBag
public Object getAttribute(String strName_p) throws Exception
getAttribute
in interface OwAttributeBag
Exception
public void setAttribute(String strName_p, Object object_p) throws Exception
Exception
public boolean hasAttribute(String strName_p)
hasAttribute
in interface OwAttributeBag
public Collection getAttributeNames()
getAttributeNames
in interface OwAttributeBag
public int attributecount()
OwAttributeBag
attributecount
in interface OwAttributeBag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |