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 for
DataObject
. The pool provides special access
methods that are interpreting the objectIds of the data objects.
A pool can contain arbitrary DataObject
s. That means, that the objects can belong to
different DataClass
es.
- Author:
- Rainer Maximini
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
Each Pool must have an id.getObjectIds
(DataClass dataClass) boolean
hasSameValueAsIn
(ReadableObjectPool objectPool) This method makes a deep compare.iterator()
void
Each Pool must have an id.int
size()
stream()
This method is a short call for supplying a stream access to the graphs in the pool.toXML()
Converts object pool to XMLMethods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface de.uni_trier.wi2.procake.data.objectpool.ObjectPoolFactoryImplementation
newObjectId
-
Method Details
-
setId
Each Pool must have an id. This Id is used as base in objectId. -
getId
String getId()Each Pool must have an id. This Id is used as base in objectId. -
getObject
- Returns:
- The object with the given id.
-
getObjectIds
- Returns:
- The set of all object ids.
-
getObjectIds
- Returns:
- A set of the object ids for the specified data class.
-
iterator
DataObjectIterator<T> iterator()- Specified by:
iterator
in interfaceIterable<T extends DataObject>
- Returns:
- An iterator over all
DataObject
s.
-
size
int size()- Returns:
- The number of
DataObject
s in the pool.
-
getNESTGraphIds
-
getNESTGraphObjectsRecursively
Set<NESTWorkflowObject> getNESTGraphObjectsRecursively()- Returns:
- A set of all
NESTWorkflowObject
s in the pool, no matter how deeply nested.
-
getCollection
Collection<T> getCollection() -
hasSameValueAsIn
This method makes a deep compare. The elements in both pools are compared.- Parameters:
objectPool
- The object pool to compare.- Returns:
true
if the givenobject pool
has the same objects as this one.
-
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
-