public class DependencyMember extends Object implements CollectionMember
| Constructor and Description |
|---|
DependencyMember() |
| Modifier and Type | Method and Description |
|---|---|
void |
assignItem(ItemPath itemPath,
TransactionKey transactionKey)
Assign the given item to the slot, if it fits
|
void |
clearItem()
De-assign the slot, leaving it empty.
|
boolean |
convertToItemPropertyByScript(PropertyArrayList props,
TransactionKey transactionKey)
Executes Script if it was defined in the Member properties
|
protected Object |
evaluateScript(TransactionKey transactionKey) |
Object |
getBuiltInProperty(BuiltInVertexProperties prop) |
String |
getChildUUID()
Returns the UUID of the currently assigned Item
|
String |
getClassProps()
Gets the class properties, which specify type information in child Items.
|
int |
getID()
Get the integer slot ID, as generated by the parent Collection
|
ItemPath |
getItemPath()
Returns the current assigned ItemPath
|
KeyValuePair[] |
getKeyValuePairs() |
CastorHashMap |
getProperties()
Gets the member properties.
|
ItemProxy |
resolveItem(TransactionKey transactionKey)
Resolve the Item currently assigned
|
void |
setBuiltInProperty(BuiltInVertexProperties prop,
Object val) |
void |
setChildUUID(String uuid) |
void |
setClassProps(String props) |
void |
setID(int id) |
void |
setKeyValuePairs(KeyValuePair[] pairs) |
void |
setProperties(CastorHashMap props) |
void |
updatePropertieFromDescription(CastorHashMap propDesc,
DependencyMember newMember) |
void |
updateProperties(CastorHashMap newProps)
Only update existing properties otherwise throw an exception
|
public ItemPath getItemPath()
CollectionMembergetItemPath in interface CollectionMemberpublic void setProperties(CastorHashMap props)
public CastorHashMap getProperties()
CollectionMembergetProperties in interface CollectionMemberpublic KeyValuePair[] getKeyValuePairs()
public void setKeyValuePairs(KeyValuePair[] pairs)
public int getID()
CollectionMembergetID in interface CollectionMemberpublic void setID(int id)
public void setClassProps(String props)
public String getClassProps()
CollectionMembergetClassProps in interface CollectionMemberpublic void assignItem(ItemPath itemPath, TransactionKey transactionKey) throws InvalidCollectionModification
CollectionMemberassignItem in interface CollectionMemberitemPath - The item to assignInvalidCollectionModification - When the Item Properties don't match the typing specification in ClassProps and Propertiespublic void clearItem()
CollectionMemberclearItem in interface CollectionMemberpublic ItemProxy resolveItem(TransactionKey transactionKey) throws ObjectNotFoundException
CollectionMemberresolveItem in interface CollectionMemberObjectNotFoundException - When emptypublic void setChildUUID(String uuid) throws InvalidCollectionModification, InvalidItemPathException
public String getChildUUID()
CollectionMembergetChildUUID in interface CollectionMemberpublic Object getBuiltInProperty(BuiltInVertexProperties prop)
public void setBuiltInProperty(BuiltInVertexProperties prop, Object val)
protected Object evaluateScript(TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException
InvalidDataExceptionObjectNotFoundExceptionpublic void updatePropertieFromDescription(CastorHashMap propDesc, DependencyMember newMember) throws ObjectNotFoundException, InvalidCollectionModification
propDesc - newMember - ObjectNotFoundExceptionInvalidCollectionModificationpublic void updateProperties(CastorHashMap newProps) throws ObjectNotFoundException, InvalidCollectionModification
newProps - the new propertiesObjectNotFoundException - property does not exists for memberInvalidCollectionModification - cannot update class propertiespublic boolean convertToItemPropertyByScript(PropertyArrayList props, TransactionKey transactionKey) throws InvalidDataException, ObjectNotFoundException
props - the current list of ItemPropertiesmember - the current DependencyMemberInvalidDataExceptionObjectNotFoundExceptionCopyright © 1997–2022 CRISTAL-iSE. All rights reserved.