Interface AssociationDefinition
- All Superinterfaces:
ClassAttributeDefinition
- All Known Subinterfaces:
ChildAssociationDefinition
Read-only definition of an Association.
- Author:
- David Caruana
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The problem identified in MNT-413 will still existgetDescription(MessageLookup messageLookup) getModel()getName()getTitle()Deprecated.The problem identified in MNT-413 will still existgetTitle(MessageLookup messageLookup) booleanisChild()Is this a child association?booleanIs this association maintained by the Repository?booleanIs the source class optional in this association?booleanCan there be many source class instances in this association?booleanIs the target class optional in this association?booleanIs the target class is mandatory, it is enforced?booleanCan there be many target class instances in this association?
-
Method Details
-
getModel
ModelDefinition getModel()- Specified by:
getModelin interfaceClassAttributeDefinition- Returns:
- defining model
-
getName
QName getName()- Specified by:
getNamein interfaceClassAttributeDefinition- Returns:
- the qualified name
-
getTitle
String getTitle()Deprecated.The problem identified in MNT-413 will still exist -
getDescription
String getDescription()Deprecated.The problem identified in MNT-413 will still exist -
getTitle
- Specified by:
getTitlein interfaceClassAttributeDefinition- Returns:
- the human-readable title
-
getDescription
- Specified by:
getDescriptionin interfaceClassAttributeDefinition- Returns:
- the human-readable description
-
isChild
boolean isChild()Is this a child association?- Returns:
- true => child, false => general relationship
-
isProtected
boolean isProtected()Is this association maintained by the Repository?- Specified by:
isProtectedin interfaceClassAttributeDefinition- Returns:
- true => system maintained, false => client may maintain
-
getSourceClass
ClassDefinition getSourceClass()- Returns:
- the source class
-
getSourceRoleName
QName getSourceRoleName()- Returns:
- the role of the source class in this association?
-
isSourceMandatory
boolean isSourceMandatory()Is the source class optional in this association?- Returns:
- true => cardinality > 0
-
isSourceMany
boolean isSourceMany()Can there be many source class instances in this association?- Returns:
- true => cardinality > 1, false => cardinality of 0 or 1
-
getTargetClass
ClassDefinition getTargetClass()- Returns:
- the target class
-
getTargetRoleName
QName getTargetRoleName()- Returns:
- the role of the target class in this association?
-
isTargetMandatory
boolean isTargetMandatory()Is the target class optional in this association?- Returns:
- true => cardinality > 0
-
isTargetMandatoryEnforced
boolean isTargetMandatoryEnforced()Is the target class is mandatory, it is enforced?- Returns:
- true => enforced
-
isTargetMany
boolean isTargetMany()Can there be many target class instances in this association?- Returns:
- true => cardinality > 1, false => cardinality of 0 or 1
-