public interface IMdaExpert
Modifier and Type | Method and Description |
---|---|
default boolean |
canLink(ElementScope linkScope,
ElementScope fromScope,
ElementScope toScope) |
boolean |
canLink(Stereotype linkStereotype,
MClass linkMetaclass,
MClass fromMetaclass,
MClass toMetaclass) |
boolean |
canLink(Stereotype linkStereotype,
MClass linkMetaclass,
MObject from,
MObject to) |
default boolean |
canSource(ElementScope linkScope,
ElementScope fromScope) |
default boolean |
canSource(ElementScope linkScope,
MObject from) |
boolean |
canSource(Stereotype linkStereotype,
MClass linkMetaclass,
MClass fromMetaclass) |
boolean |
canSource(Stereotype linkStereotype,
MObject linkMetaclass,
MObject from) |
default boolean |
canTarget(ElementScope linkScope,
ElementScope toScope) |
boolean |
canTarget(Stereotype linkStereotype,
MClass linkMetaclass,
MClass toMetaclass) |
boolean |
canTarget(Stereotype linkStereotype,
MObject linkMetaclass,
MObject to) |
default java.util.Map<ElementScope,java.util.List<ElementScope>> |
getLinkingRules(Stereotype linkStereotype)
Get the possible source/target combinations for a stereotyped link.
|
default java.util.Collection<MClass> |
getPossibleSourceMetaclasses(Stereotype linkStereotype,
MClass targetMetaclass)
Get the possible source metaclasses of a stereotyped link.
|
default java.util.Collection<MClass> |
getPossibleTargetMetaclasses(Stereotype linkStereotype,
MClass sourceMetaclass)
Get the possible target metaclasses of a stereotyped link.
|
default boolean |
isMultiple(Stereotype linkStereotype)
Indicates whether or not several instances of a MethodologicalLink can be used at the same time on an element.
|
boolean canLink(Stereotype linkStereotype, MClass linkMetaclass, MObject from, MObject to)
boolean canLink(Stereotype linkStereotype, MClass linkMetaclass, MClass fromMetaclass, MClass toMetaclass)
default boolean canLink(ElementScope linkScope, ElementScope fromScope, ElementScope toScope)
boolean canSource(Stereotype linkStereotype, MClass linkMetaclass, MClass fromMetaclass)
boolean canSource(Stereotype linkStereotype, MObject linkMetaclass, MObject from)
default boolean canSource(ElementScope linkScope, MObject from)
default boolean canSource(ElementScope linkScope, ElementScope fromScope)
boolean canTarget(Stereotype linkStereotype, MClass linkMetaclass, MClass toMetaclass)
boolean canTarget(Stereotype linkStereotype, MObject linkMetaclass, MObject to)
default boolean canTarget(ElementScope linkScope, ElementScope toScope)
default boolean isMultiple(Stereotype linkStereotype)
Default value is true
.
linkStereotype
- a Stereotype defined on MethodologicalLink
.true
if several instances can be used, false
otherwise.default java.util.Collection<MClass> getPossibleTargetMetaclasses(Stereotype linkStereotype, MClass sourceMetaclass)
linkStereotype
- a stereotype applicable on a link metaclass. Must not be null
.sourceMetaclass
- the source of the link. Must not be null
.default java.util.Collection<MClass> getPossibleSourceMetaclasses(Stereotype linkStereotype, MClass targetMetaclass)
linkStereotype
- a stereotype applicable on a link metaclass. Must not be null
.targetMetaclass
- the target of the link. Must not be null
.default java.util.Map<ElementScope,java.util.List<ElementScope>> getLinkingRules(Stereotype linkStereotype)
linkStereotype
- a stereotype applicable on a link metaclass. Must not be null
.