Package org.cristalise.kernel.collection
Class AggregationMember
java.lang.Object
org.cristalise.kernel.graph.model.Vertex
org.cristalise.kernel.graph.model.GraphableVertex
org.cristalise.kernel.collection.AggregationMember
- All Implemented Interfaces:
CollectionMember
A CollectionMember, or slot, of an Aggregation instance or description.
Verifies type information of Items during assignment based on
PropertyDescription information stored in slot properties and listed as
ClassProps.
-
Field Summary
Fields inherited from class org.cristalise.kernel.graph.model.GraphableVertex
mIsComposite -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignItem(ItemPath itemPath, TransactionKey transactionKey) Assign the given item to the slot, if it fitsvoidDe-assign the slot, leaving it empty.Returns the UUID of the currently assigned ItemGets the class properties, which specify type information in child Items.Returns the current assigned ItemPathresolveItem(TransactionKey transactionKey) Resolve the Item currently assignedvoidsetChildUUID(String uuid) voidsetClassProps(String props) voidsetCollection(Aggregation aggregation) Methods inherited from class org.cristalise.kernel.graph.model.GraphableVertex
addChild, deriveVersionNumber, getBuiltInProperty, getBuiltInProperty, getCentrePoint, getChildren, getChildrenEdges, getChildrenGraphModel, getCreationContext, getInEdgeIds, getInEdges, getInGraphables, getIsComposite, getIsLayoutable, getKeyValuePairs, getLayoutableChildren, getOtherPairingID, getOutEdgeIds, getOutEdges, getOutGraphables, getOutlinePoints, getPairingId, getParent, getPath, getProperties, isMyPair, search, setBuiltInProperty, setChildrenGraphModel, setIsComposite, setIsLayoutable, setKeyValuePairs, setParent, setProperties, updatePropertiesFromCollection, updatePropertiesFromCollectionMethods inherited from class org.cristalise.kernel.graph.model.Vertex
addInEdgeId, addOutEdgeId, clearTag, containsPoint, hasTag, isJoin, isLoop, moveAbsolute, removeInEdgeId, removeOutEdgeId, setInEdgeIds, setOutEdgeIds, setOutlinePoints, setTagMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cristalise.kernel.collection.CollectionMember
getID, getProperties
-
Constructor Details
-
AggregationMember
public AggregationMember()
-
-
Method Details
-
setCollection
-
setClassProps
-
getItemPath
Description copied from interface:CollectionMemberReturns the current assigned ItemPath- Specified by:
getItemPathin interfaceCollectionMember- Returns:
- the ItemPath, null if empty
-
getCollection
-
getClassProps
Description copied from interface:CollectionMemberGets the class properties, which specify type information in child Items. On instantiation from a CollectionDescription, the ClassProps are generated from the PropertyDescriptions which have the isClassIdentifier boolean set to true.- Specified by:
getClassPropsin interfaceCollectionMember- Returns:
- Comma-separated list of property names that relate to Item type
-
assignItem
public void assignItem(ItemPath itemPath, TransactionKey transactionKey) throws InvalidCollectionModification Description copied from interface:CollectionMemberAssign the given item to the slot, if it fits- Specified by:
assignItemin interfaceCollectionMember- Parameters:
itemPath- The item to assign- Throws:
InvalidCollectionModification- When the Item Properties don't match the typing specification in ClassProps and Properties
-
clearItem
public void clearItem()Description copied from interface:CollectionMemberDe-assign the slot, leaving it empty.- Specified by:
clearItemin interfaceCollectionMember
-
resolveItem
Description copied from interface:CollectionMemberResolve the Item currently assigned- Specified by:
resolveItemin interfaceCollectionMember- Returns:
- the ItemProxy of the assigned Item
- Throws:
ObjectNotFoundException- When empty
-
getItemName
-
setChildUUID
public void setChildUUID(String uuid) throws InvalidCollectionModification, InvalidItemPathException -
getChildUUID
Description copied from interface:CollectionMemberReturns the UUID of the currently assigned Item- Specified by:
getChildUUIDin interfaceCollectionMember- Returns:
- UUID
-