Interface ReadableObjectPool<T extends DataObject>
-
- All Superinterfaces:
Iterable<T>,ObjectPoolFactoryImplementation
- All Known Subinterfaces:
WriteableObjectPool<T>
- All Known Implementing Classes:
WriteableObjectPoolImpl
public interface ReadableObjectPool<T extends DataObject> extends Iterable<T>, ObjectPoolFactoryImplementation
A readable object pool is a container forDataObject. The pool provides special access methods that are interpreting the objectIds of the data objects.A pool can contain arbitrary
DataObjects. That means, that the objects can belong to differentDataClasses.- Author:
- Rainer Maximini
- See Also:
DataObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<T>getCollection()StringgetId()Each Pool must have an Id.Set<String>getNESTGraphIds()Set<NESTWorkflowObject>getNESTGraphObjectsRecursively()TgetObject(String objectId)Set<String>getObjectIds()Set<String>getObjectIds(DataClass dataClass)booleanhasSameValueAsIn(ReadableObjectPool objectPool)This method makes a deep compare.DataObjectIterator<T>iterator()intsize()Stream<T>stream()This method is a short call for supplying a stream access to the graphs in the pool.StringtoXML()Converts object pool to XML-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface de.uni_trier.wi2.procake.data.objectpool.ObjectPoolFactoryImplementation
newObjectId
-
-
-
-
Method Detail
-
getId
String getId()
Each Pool must have an Id. This Id is used as base in objectId.
-
getObjectIds
Set<String> getObjectIds(DataClass dataClass)
- Returns:
- A set of the object ids for the specified data class.
-
iterator
DataObjectIterator<T> iterator()
- Specified by:
iteratorin interfaceIterable<T extends DataObject>- Returns:
- An iterator over all
DataObjects.
-
size
int size()
- Returns:
- The number of
DataObjects in the pool.
-
getNESTGraphObjectsRecursively
Set<NESTWorkflowObject> getNESTGraphObjectsRecursively()
- Returns:
- A set of all
NESTWorkflowObjects in the pool, no matter how deeply nested.
-
getCollection
Collection<T> getCollection()
-
hasSameValueAsIn
boolean hasSameValueAsIn(ReadableObjectPool objectPool)
This method makes a deep compare. The elements in both pools are compared.- Parameters:
objectPool- The object pool to compare.- Returns:
trueif the givenobject poolhas the same objects as this one.
-
stream
Stream<T> stream()
This method is a short call for supplying a stream access to the graphs in the pool.- Returns:
- a stream of the pool objects
-
toXML
String toXML()
Converts object pool to XML- Returns:
- XML String
-
-