public interface Clause extends Element
From package UML::Actions.
The following features are supported:
UMLPackage.getClause()
Modifier and Type | Method and Description |
---|---|
org.eclipse.emf.common.util.EList<ExecutableNode> |
getBodies()
Returns the value of the 'Body' reference list.
|
ExecutableNode |
getBody(java.lang.String name)
Retrieves the first
ExecutableNode with the specified 'Name' from the 'Body' reference list |
ExecutableNode |
getBody(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first
ExecutableNode with the specified 'Name' from the 'Body' reference list |
OutputPin |
getBodyOutput(java.lang.String name,
Type type)
Retrieves the first
OutputPin with the specified 'Name', and 'Type' from the 'Body Output' reference list |
OutputPin |
getBodyOutput(java.lang.String name,
Type type,
boolean ignoreCase)
Retrieves the first
OutputPin with the specified 'Name', and 'Type' from the 'Body Output' reference list |
org.eclipse.emf.common.util.EList<OutputPin> |
getBodyOutputs()
Returns the value of the 'Body Output' reference list.
|
OutputPin |
getDecider()
Returns the value of the 'Decider' reference
|
org.eclipse.emf.common.util.EList<Clause> |
getPredecessorClauses()
Returns the value of the 'Predecessor Clause' reference list.
|
org.eclipse.emf.common.util.EList<Clause> |
getSuccessorClauses()
Returns the value of the 'Successor Clause' reference list.
|
ExecutableNode |
getTest(java.lang.String name)
Retrieves the first
ExecutableNode with the specified 'Name' from the 'Test' reference list |
ExecutableNode |
getTest(java.lang.String name,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass)
Retrieves the first
ExecutableNode with the specified 'Name' from the 'Test' reference list |
org.eclipse.emf.common.util.EList<ExecutableNode> |
getTests()
Returns the value of the 'Test' reference list.
|
void |
setDecider(OutputPin value)
Sets the value of the '
Decider ' reference |
boolean |
validateBodyOutputPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The bodyOutput Pins are OutputPins on Actions in the body of the Clause.
|
boolean |
validateDeciderOutput(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The decider Pin must be on an Action in the test section of the Clause and must be of type Boolean with multiplicity 1..1.
|
boolean |
validateTestAndBody(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The test and body parts of a ConditionalNode must be disjoint with each other.
|
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
getEAnnotation, getEAnnotations
org.eclipse.emf.common.util.EList<ExecutableNode> getTests()
ExecutableNode
.
The set of ExecutableNodes that are executed in order to provide a test result for the Clause.
From package UML::Actions.
UMLPackage.getClause_Test()
ExecutableNode getTest(java.lang.String name)
ExecutableNode
with the specified 'Name' from the 'Test' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.ExecutableNode
with the specified 'Name', or null
.getTests()
ExecutableNode getTest(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
ExecutableNode
with the specified 'Name' from the 'Test' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ExecutableNode
to retrieve, or null
.ExecutableNode
with the specified 'Name', or null
.getTests()
org.eclipse.emf.common.util.EList<ExecutableNode> getBodies()
ExecutableNode
.
The set of ExecutableNodes that are executed if the test evaluates to true and the Clause is chosen over other Clauses within the ConditionalNode that also have tests that evaluate to true.
From package UML::Actions.
UMLPackage.getClause_Body()
ExecutableNode getBody(java.lang.String name)
ExecutableNode
with the specified 'Name' from the 'Body' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.ExecutableNode
with the specified 'Name', or null
.getBodies()
ExecutableNode getBody(java.lang.String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
ExecutableNode
with the specified 'Name' from the 'Body' reference list.
name
- The 'Name' of the ExecutableNode
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ExecutableNode
to retrieve, or null
.ExecutableNode
with the specified 'Name', or null
.getBodies()
org.eclipse.emf.common.util.EList<Clause> getPredecessorClauses()
Clause
.
It is bidirectional and its opposite is 'Successor Clause
'.
A set of Clauses whose tests must all evaluate to false before this Clause can evaluate its test.
From package UML::Actions.
UMLPackage.getClause_PredecessorClause()
,
getSuccessorClauses()
org.eclipse.emf.common.util.EList<Clause> getSuccessorClauses()
Clause
.
It is bidirectional and its opposite is 'Predecessor Clause
'.
A set of Clauses that may not evaluate their tests unless the test for this Clause evaluates to false.
From package UML::Actions.
UMLPackage.getClause_SuccessorClause()
,
getPredecessorClauses()
OutputPin getDecider()
From package UML::Actions.
setDecider(OutputPin)
,
UMLPackage.getClause_Decider()
void setDecider(OutputPin value)
Decider
' reference.
value
- the new value of the 'Decider' reference.getDecider()
org.eclipse.emf.common.util.EList<OutputPin> getBodyOutputs()
OutputPin
.
The OutputPins on Actions within the body section whose values are moved to the result OutputPins of the containing ConditionalNode after execution of the body.
From package UML::Actions.
UMLPackage.getClause_BodyOutput()
OutputPin getBodyOutput(java.lang.String name, Type type)
OutputPin
with the specified 'Name', and 'Type' from the 'Body Output' reference list.
name
- The 'Name' of the OutputPin
to retrieve, or null
.type
- The 'Type' of the OutputPin
to retrieve, or null
.OutputPin
with the specified 'Name', and 'Type', or null
.getBodyOutputs()
OutputPin getBodyOutput(java.lang.String name, Type type, boolean ignoreCase)
OutputPin
with the specified 'Name', and 'Type' from the 'Body Output' reference list.
name
- The 'Name' of the OutputPin
to retrieve, or null
.type
- The 'Type' of the OutputPin
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.OutputPin
with the specified 'Name', and 'Type', or null
.getBodyOutputs()
boolean validateDeciderOutput(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateTestAndBody(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateBodyOutputPins(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.