public class DependencyDescription extends Dependency implements CollectionDescription<DependencyMember>
mClassProps, mPropertiesmMembers, mName, mVersion| Constructor and Description |
|---|
DependencyDescription() |
DependencyDescription(String name) |
DependencyDescription(String name,
Integer version) |
| Modifier and Type | Method and Description |
|---|---|
DependencyMember |
addMember(ItemPath itemPath)
Add a member to the Dependency
|
DependencyMember |
addMember(ItemPath itemPath,
CastorHashMap props,
String classProps)
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.
|
void |
checkMembership() |
Collection<DependencyMember> |
newInstance()
Create a new instance of this collection.
|
addMember, addToItemProperties, addToVertexProperties, compare, containsBuiltInProperty, createMember, createMember, evaluateScript, getBuiltInProperty, getClassProperties, getClassProps, getKeyValuePairs, getProperties, removeMember, setClassProps, setKeyValuePairs, setProperties, updateMember, updateMembercontains, equals, getClusterPath, getClusterType, getCounter, getDescVer, getMember, getMembers, getName, getVersion, getVersionName, hashCode, isFull, resolveMembers, resolveMembers, setMembers, setName, setVersion, sizeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitenforceValidName, getClusterPath, getClusterType, getName, setNamepublic DependencyDescription()
public DependencyDescription(String name)
public Collection<DependencyMember> newInstance() throws ObjectNotFoundException
CollectionDescriptionnewInstance in interface CollectionDescription<DependencyMember>ObjectNotFoundException - When an essential piece of description
data, such as a child Item PropertyDescription outcome, doesn't exist.public DependencyMember addMember(ItemPath itemPath) throws InvalidCollectionModification, ObjectAlreadyExistsException
DependencyaddMember in class DependencyitemPath - the Item to be added as a MemberInvalidCollectionModification - if Item is null or the Properties of the Item (e.g. Type) does not match the Collection'sObjectAlreadyExistsException - Item is already a memberpublic DependencyMember addMember(ItemPath itemPath, CastorHashMap props, String classProps) throws InvalidCollectionModification, ObjectAlreadyExistsException
CollectionaddMember in class DependencyitemPath - 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.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 attemptedpublic void checkMembership()
throws InvalidCollectionModification
InvalidCollectionModificationCopyright © 1997–2020 CRISTAL-iSE. All rights reserved.