public interface MExpert
Modifier and Type | Method and Description |
---|---|
boolean |
canCompose(MClass owner,
MClass composed,
java.lang.String dep)
Tells whether the owner can own the given composed element using the given dependency name.
|
boolean |
canCompose(MObject owner,
MClass composed,
java.lang.String dep)
Tells whether the owner can own an instance of the given metaclass using the given dependency name.
|
boolean |
canCompose(MObject owner,
MObject composed,
java.lang.String dep)
Tells whether the owner can own the given composed element using the given dependency name.
|
boolean |
canDep(MClass source,
MClass target,
java.lang.String dep)
Whether or not a dependency 'dep' exists between 'source' and 'target' metaclass.
|
boolean |
canDep(MObject source,
MClass target,
java.lang.String dep)
Whether or not a dependency 'dep' can be established between the 'source' object and an instance of 'target' metaclass based
on their metaclass and stereotypes.
|
boolean |
canDep(MObject source,
MObject target,
java.lang.String dep)
Whether or not a dependency 'dep' can be established between the 'source' and 'target' objects based on their metaclass and
stereotypes.
|
boolean |
canLink(MClass link,
MClass from,
MClass to) |
boolean |
canLink(MClass link,
MObject from,
MObject to) |
boolean |
canSource(MClass link,
MClass from) |
boolean |
canSource(MObject link,
MObject from) |
boolean |
canTarget(MClass link,
MClass to) |
boolean |
canTarget(MObject link,
MObject to) |
MDependency |
getDefaultCompositionDep(MClass owner,
MClass composed) |
MDependency |
getDefaultCompositionDep(MObject owner,
MObject composed) |
java.util.List<MDependency> |
getDeps(MObject source,
MObject target)
Get the lists of all possible dependencies between the 'source' and 'target' objects.
|
MObject |
getSource(MObject aLink)
Get a model link source
|
MObject |
getTarget(MObject aLink)
Get a model link target.
|
boolean |
isLink(MClass metaclass) |
void |
setSource(MObject link,
MObject oldSource,
MObject newSource)
Change a model link source.
|
void |
setTarget(MObject link,
MObject oldTarget,
MObject newTarget)
Change a model link target.
|
boolean canCompose(MClass owner, MClass composed, java.lang.String dep)
owner
- The owner node, must not be null.composed
- The composed element, must not be nulldep
- optional: The name of the dependency on the owner used to add the composed.boolean canCompose(MObject owner, MClass composed, java.lang.String dep)
owner
- The owner node, must not be null.composed
- The metaclass of the composed element, must not be nulldep
- optional: The name of the dependency on the owner used to add the composed.boolean canCompose(MObject owner, MObject composed, java.lang.String dep)
owner
- The owner node, must not be null.composed
- The composed element, must not be nulldep
- optional: The name of the dependency on the owner used to add the composed.boolean canDep(MObject source, MClass target, java.lang.String dep)
dep
- the name of the dependency on the owner used to add the target.boolean canDep(MClass source, MClass target, java.lang.String dep)
dep
- the name of the dependency on the owner used to add the target.boolean canDep(MObject source, MObject target, java.lang.String dep)
dep
- the name of the dependency on the owner used to add the target.MDependency getDefaultCompositionDep(MObject owner, MObject composed)
MDependency getDefaultCompositionDep(MClass owner, MClass composed)
java.util.List<MDependency> getDeps(MObject source, MObject target)
MObject getSource(MObject aLink)
aLink
- a model link.MObject getTarget(MObject aLink)
aLink
- a model link.boolean isLink(MClass metaclass)
void setSource(MObject link, MObject oldSource, MObject newSource) throws java.lang.IllegalArgumentException
link
- a model link.oldSource
- the old source.newSource
- the new source.java.lang.IllegalArgumentException
- if the new destination is illegal or the link is not a model link.void setTarget(MObject link, MObject oldTarget, MObject newTarget) throws java.lang.IllegalArgumentException
link
- a model link.oldTarget
- the old target.newTarget
- the new target.java.lang.IllegalArgumentException
- if the new destination is illegal or the link is not a model link.