|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Rule
A representation of the model object 'Rule'.
The following features are supported:
Lhs
Rhs
Attribute Conditions
Mappings
Check Dangling
Injective Matching
Multi Rules
Multi Mappings
Java Imports
HenshinPackage.getRule()
Method Summary | |
---|---|
boolean |
canCreateEdge(Node source,
Node target,
EReference type)
|
Edge |
createEdge(Node source,
Node target,
EReference type)
|
Node |
createNode(EClass type)
|
EList<Edge> |
getActionEdges(Action action)
|
EList<Node> |
getActionNodes(Action action)
|
MappingList |
getAllMappings()
Get all mappings recursively contained in this rule. |
EList<Rule> |
getAllMultiRules()
|
EList<AttributeCondition> |
getAttributeConditions()
Returns the value of the 'Attribute Conditions' containment reference list. |
EList<String> |
getJavaImports()
Returns the value of the 'Java Imports' attribute list. |
Rule |
getKernelRule()
|
Graph |
getLhs()
Returns the value of the 'Lhs' containment reference. |
MappingList |
getMappings()
Returns the value of the 'Mappings' containment reference list. |
MappingList |
getMultiMappings()
Returns the value of the 'Multi Mappings' containment reference list. |
Rule |
getMultiRule(String name)
|
EList<Rule> |
getMultiRulePath(Rule multiRule)
Get the path to multi-rule. |
EList<Rule> |
getMultiRules()
Returns the value of the 'Multi Rules' containment reference list. |
EList<Node> |
getParameterNodes()
|
Graph |
getRhs()
Returns the value of the 'Rhs' containment reference. |
Rule |
getRootRule()
|
boolean |
isCheckDangling()
Returns the value of the 'Check Dangling' attribute. |
boolean |
isInjectiveMatching()
Returns the value of the 'Injective Matching' attribute. |
boolean |
isMultiRule()
|
boolean |
removeAttribute(Attribute attribute,
boolean removeMapped)
|
boolean |
removeEdge(Edge edge,
boolean removeMapped)
|
boolean |
removeNode(Node node,
boolean removeMapped)
|
void |
setCheckDangling(boolean value)
Sets the value of the ' Check Dangling ' attribute. |
void |
setInjectiveMatching(boolean value)
Sets the value of the ' Injective Matching ' attribute. |
void |
setLhs(Graph value)
Sets the value of the ' Lhs ' containment reference. |
void |
setRhs(Graph value)
Sets the value of the ' Rhs ' containment reference. |
Methods inherited from interface org.eclipse.emf.henshin.model.Unit |
---|
getModule, getParameter, getParameterMappings, getParameters, getSubUnits, isActivated, setActivated |
Methods inherited from interface org.eclipse.emf.henshin.model.NamedElement |
---|
getDescription, getName, setDescription, setName |
Methods inherited from interface org.eclipse.emf.henshin.model.ModelElement |
---|
getAnnotations |
Methods inherited from interface org.eclipse.emf.ecore.EObject |
---|
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset |
Methods inherited from interface org.eclipse.emf.common.notify.Notifier |
---|
eAdapters, eDeliver, eNotify, eSetDeliver |
Method Detail |
---|
Graph getLhs()
setLhs(Graph)
,
HenshinPackage.getRule_Lhs()
void setLhs(Graph value)
Lhs
' containment reference.
value
- the new value of the 'Lhs' containment reference.getLhs()
Graph getRhs()
setRhs(Graph)
,
HenshinPackage.getRule_Rhs()
void setRhs(Graph value)
Rhs
' containment reference.
value
- the new value of the 'Rhs' containment reference.getRhs()
MappingList getMappings()
Mapping
.
HenshinPackage.getRule_Mappings()
EList<AttributeCondition> getAttributeConditions()
AttributeCondition
.
It is bidirectional and its opposite is 'Rule
'.
HenshinPackage.getRule_AttributeConditions()
,
AttributeCondition.getRule()
Rule getKernelRule()
Rule getRootRule()
Rule getMultiRule(String name)
EList<Rule> getMultiRulePath(Rule multiRule)
multiRule
- a direct or indirect multi-rule of this rule.
boolean removeEdge(Edge edge, boolean removeMapped)
boolean removeNode(Node node, boolean removeMapped)
boolean removeAttribute(Attribute attribute, boolean removeMapped)
EList<Rule> getAllMultiRules()
MappingList getAllMappings()
EList<Node> getActionNodes(Action action)
EList<Edge> getActionEdges(Action action)
EList<Node> getParameterNodes()
boolean isMultiRule()
Node createNode(EClass type)
Edge createEdge(Node source, Node target, EReference type)
boolean canCreateEdge(Node source, Node target, EReference type)
boolean isCheckDangling()
"true"
.
setCheckDangling(boolean)
,
HenshinPackage.getRule_CheckDangling()
void setCheckDangling(boolean value)
Check Dangling
' attribute.
value
- the new value of the 'Check Dangling' attribute.isCheckDangling()
boolean isInjectiveMatching()
"true"
.
setInjectiveMatching(boolean)
,
HenshinPackage.getRule_InjectiveMatching()
void setInjectiveMatching(boolean value)
Injective Matching
' attribute.
value
- the new value of the 'Injective Matching' attribute.isInjectiveMatching()
EList<Rule> getMultiRules()
Rule
.
HenshinPackage.getRule_MultiRules()
MappingList getMultiMappings()
Mapping
.
HenshinPackage.getRule_MultiMappings()
EList<String> getJavaImports()
String
.
HenshinPackage.getRule_JavaImports()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |