Package org.cristalise.kernel.collection
Class AggregationInstance
java.lang.Object
org.cristalise.kernel.collection.Collection<AggregationMember>
org.cristalise.kernel.collection.Aggregation
org.cristalise.kernel.collection.AggregationInstance
- All Implemented Interfaces:
C2KLocalObject
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cristalise.kernel.collection.Collection
Collection.Cardinality, Collection.Type -
Field Summary
Fields inherited from class org.cristalise.kernel.collection.Aggregation
mLayoutFields inherited from class org.cristalise.kernel.collection.Collection
mMembers, mName, mVersion -
Constructor Summary
ConstructorsConstructorDescriptionAggregationInstance(String name) AggregationInstance(String name, Integer version) -
Method Summary
Modifier and TypeMethodDescriptionaddMember(ItemPath itemPath, CastorHashMap props, String classProps, GraphPoint location, int w, int h, TransactionKey transactionKey) addMember(ItemPath itemPath, CastorHashMap props, String classProps, TransactionKey transactionKey) Add a member to this collection, with the given property and class properties and optionally an Item to assign, which may be null if the collection allows empty slots.Methods inherited from class org.cristalise.kernel.collection.Aggregation
addMember, addSlot, addSlot, exists, getIsComposite, getLayout, getMemberPair, getVertexTypeNameAndConstructionInfo, removeMember, setLayoutMethods inherited from class org.cristalise.kernel.collection.Collection
contains, equals, getClusterPath, getClusterType, getCounter, getDescVer, getMember, getMember, getMembers, getName, getVersion, getVersionName, hashCode, isFull, removeMember, resolveMembers, resolveMembers, resolveMembers, setMembers, setName, setVersion, size
-
Constructor Details
-
AggregationInstance
public AggregationInstance() -
AggregationInstance
-
AggregationInstance
-
-
Method Details
-
addMember
public AggregationMember addMember(ItemPath itemPath, CastorHashMap props, String classProps, TransactionKey transactionKey) throws InvalidCollectionModification, ObjectAlreadyExistsException Description copied from class:CollectionAdd a member to this collection, with the given property and class properties and optionally an Item to assign, which may be null if the collection allows empty slots.- Overrides:
addMemberin classAggregation- Parameters:
itemPath- the Item to assign to the new slot. Optional for collections that allow empty slotsprops- the Properties of the new memberclassProps- the names of the properties that dictate the type of assigned Items.- Returns:
- the new CollectionMember instance
- Throws:
InvalidCollectionModification- when the assignment was invalid because of collection constraints, such as global type constraints, or not allowing empty slots.ObjectAlreadyExistsException- some collections don't allow multiple slots assigned to the same Item, and throw this Exception if it is attempted
-
addMember
public AggregationMember addMember(ItemPath itemPath, CastorHashMap props, String classProps, GraphPoint location, int w, int h, TransactionKey transactionKey) throws InvalidCollectionModification, ObjectAlreadyExistsException - Overrides:
addMemberin classAggregation- Throws:
InvalidCollectionModificationObjectAlreadyExistsException
-