Class TransientLinkSet
java.lang.Object
org.eclipse.m2m.atl.engine.emfvm.lib.TransientLinkSet
Stores a
TransientLink
Set.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addLink
(TransientLink tl) Adds a link to the set.void
addLink2
(TransientLink tl, boolean isDefault) Adds a link to the set.getLinkByRuleAndSourceElement
(Object rule, Object sourceElement) Retrieve a link by the given rule and source element.getLinkBySourceElement
(Object sourceElement) Retrieve a link by the given source element.getLinkByTargetElement
(Object sourceElement) Retrieve a link by the given source element.getLinksByRule
(Object rule) Returns the links of a rule.toString()
-
Constructor Details
-
TransientLinkSet
public TransientLinkSet()
-
-
Method Details
-
addLink
Adds a link to the set.- Parameters:
tl
- the link
-
addLink2
Adds a link to the set.- Parameters:
tl
- the linkisDefault
- true if the link is the default link
-
getLinksByRule
Returns the links of a rule.- Parameters:
rule
- the rule- Returns:
- the links of a rule
-
getLinkBySourceElement
Retrieve a link by the given source element.- Parameters:
sourceElement
- the source element- Returns:
- the link
-
getLinkByTargetElement
Retrieve a link by the given source element.- Parameters:
sourceElement
- the source element- Returns:
- the link
-
getLinkByRuleAndSourceElement
Retrieve a link by the given rule and source element.- Parameters:
rule
- the given rulesourceElement
- the source element- Returns:
- the link
-
toString
-