Class TransientLinkSet
- java.lang.Object
-
- org.eclipse.m2m.atl.engine.emfvm.lib.TransientLinkSet
-
public class TransientLinkSet extends java.lang.Object
Stores aTransientLink
Set.
-
-
Constructor Summary
Constructors Constructor Description TransientLinkSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLink(TransientLink tl)
Adds a link to the set.void
addLink2(TransientLink tl, boolean isDefault)
Adds a link to the set.TransientLink
getLinkByRuleAndSourceElement(java.lang.Object rule, java.lang.Object sourceElement)
Retrieve a link by the given rule and source element.TransientLink
getLinkBySourceElement(java.lang.Object sourceElement)
Retrieve a link by the given source element.TransientLink
getLinkByTargetElement(java.lang.Object sourceElement)
Retrieve a link by the given source element.java.util.List<TransientLink>
getLinksByRule(java.lang.Object rule)
Returns the links of a rule.java.lang.String
toString()
-
-
-
Method Detail
-
addLink
public void addLink(TransientLink tl)
Adds a link to the set.- Parameters:
tl
- the link
-
addLink2
public void addLink2(TransientLink tl, boolean isDefault)
Adds a link to the set.- Parameters:
tl
- the linkisDefault
- true if the link is the default link
-
getLinksByRule
public java.util.List<TransientLink> getLinksByRule(java.lang.Object rule)
Returns the links of a rule.- Parameters:
rule
- the rule- Returns:
- the links of a rule
-
getLinkBySourceElement
public TransientLink getLinkBySourceElement(java.lang.Object sourceElement)
Retrieve a link by the given source element.- Parameters:
sourceElement
- the source element- Returns:
- the link
-
getLinkByTargetElement
public TransientLink getLinkByTargetElement(java.lang.Object sourceElement)
Retrieve a link by the given source element.- Parameters:
sourceElement
- the source element- Returns:
- the link
-
getLinkByRuleAndSourceElement
public TransientLink getLinkByRuleAndSourceElement(java.lang.Object rule, java.lang.Object sourceElement)
Retrieve a link by the given rule and source element.- Parameters:
rule
- the given rulesourceElement
- the source element- Returns:
- the link
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-