Interface IMetaAssociation
public interface IMetaAssociation
Represents the type of an association member of an entity (IMetaObject).
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Defines the owner of the association.static enum
Defines the type of the association.static enum
Defines the child's delete behaviour of the association.static enum
Defines the parent's delete behaviour of the association. -
Method Summary
Modifier and TypeMethodDescriptiongetChild()
Returns the meta-object for the child of this association type.Returns the delete behaviour for child deletion of this association type.Returns the message key for the child's delete behaviour.Returns the delete behaviour for parent deletion of this association type.Returns the message key for the parent's delete behaviour.Returns the identifier of the modeled association which is the base of this association type.getName()
Returns the name of this association type.getOwner()
Returns the owner of this association type.Returns the meta-object for the parent of this association type.getType()
Returns the type of this association type.boolean
hasMetaDataAccess
(IContext context) Returns whether the specified context has access to this association type.
-
Method Details
-
getChild
IMetaObject getChild()Returns the meta-object for the child of this association type.- Returns:
- the meta-object
-
getDeleteBehaviourParent
IMetaAssociation.DeleteBehaviourParent getDeleteBehaviourParent()Returns the delete behaviour for parent deletion of this association type.- Returns:
- the delete behaviour
-
getDeleteBehaviourParentMessageKey
String getDeleteBehaviourParentMessageKey()Returns the message key for the parent's delete behaviour.- Returns:
- the message key
-
getDeleteBehaviourChild
IMetaAssociation.DeleteBehaviourChild getDeleteBehaviourChild()Returns the delete behaviour for child deletion of this association type.- Returns:
- the delete behaviour
-
getDeleteBehaviourChildMessageKey
String getDeleteBehaviourChildMessageKey()Returns the message key for the child's delete behaviour.- Returns:
- the message key
-
getName
String getName()Returns the name of this association type.- Returns:
- the name
-
getOwner
IMetaAssociation.AssociationOwner getOwner()Returns the owner of this association type.- Returns:
- DEFAULT for unidirectional associations, BOTH for bidirectional ones
-
getParent
IMetaObject getParent()Returns the meta-object for the parent of this association type.- Returns:
- the meta-object
-
getType
IMetaAssociation.AssociationType getType()Returns the type of this association type.- Returns:
- REFERENCE for 'to-one' associations, REFERENCE_SET for 'to-many' associations
-
hasMetaDataAccess
Returns whether the specified context has access to this association type.- Parameters:
context
- the context to check- Returns:
- true if the context has access, false otherwise
-
getModelGUID
UUID getModelGUID()Returns the identifier of the modeled association which is the base of this association type.- Returns:
- the identifier of the modeled association
-