Package com.sodius.mdw.metamodel.uml21
Interface ConsiderIgnoreFragment
-
- All Superinterfaces:
CombinedFragment
,Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,InteractionFragment
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
public interface ConsiderIgnoreFragment extends CombinedFragment
A representation of the model object 'Consider Ignore Fragment'. A consider ignore fragment is a kind of combined fragment that is used for the consider and ignore cases, which require lists of pertinent messages to be specified.The following features are supported:
- See Also:
UMLPackage.getConsiderIgnoreFragment()
-
-
Field Summary
-
Fields inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NamedElement
getMessage(String name)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Message' reference list.NamedElement
getMessage(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Message' reference list.MDWEList<NamedElement>
getMessages()
Returns the value of the 'Message' reference list.boolean
validateConsiderOrIgnore(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The interaction operator of a ConsiderIgnoreFragment must be either 'consider' or 'ignore'.boolean
validateType(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The NamedElements must be of a type of element that identifies a message (e.g., an Operation, Reception, or a Signal).-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.CombinedFragment
createCfragmentGate, createOperand, getCfragmentGate, getCfragmentGate, getCfragmentGates, getInteractionOperator, getOperand, getOperand, getOperands, setInteractionOperator, validateBreak, validateConsiderAndIgnore, validateMinintAndMaxint, validateOptLoopBreakNeg
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.Element
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
-
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
-
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 com.sodius.mdw.metamodel.uml21.InteractionFragment
createGeneralOrdering, getCovered, getCovered, getCovereds, getEnclosingInteraction, getEnclosingOperand, getGeneralOrdering, getGeneralOrdering, getGeneralOrderings, setEnclosingInteraction, setEnclosingOperand
-
Methods inherited from interface com.sodius.mdw.core.model.MDWObject
compareTo, eExtendedClass, eIsInstanceOf, eIsInstanceOf, eIsProfiled, eIsRemoved, eMetamodel, eMetaTypeName, eModel, eRemove, eSetUniqueID, eUniqueID, superScript, superScript, toBoolean, toBoolean, toByte, toByte, toChar, toChar, toDouble, toDouble, toFloat, toFloat, toInt, toInt, toList, toList, toList, toList, toList, toLong, toLong, toObject, toObject, toSet, toSet, toShort, toShort, toString, toString
-
Methods inherited from interface com.sodius.mdw.metamodel.uml21.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
-
-
-
-
Method Detail
-
getMessages
MDWEList<NamedElement> getMessages()
Returns the value of the 'Message' reference list. The list contents are of typeNamedElement
. The set of messages that apply to this fragment- Returns:
- the value of the 'Message' reference list.
- See Also:
UMLPackage.getConsiderIgnoreFragment_Message()
-
getMessage
NamedElement getMessage(String name)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Message' reference list.- Parameters:
name
- The 'Name' of theNamedElement
to retrieve, ornull
.- Returns:
- The first
NamedElement
with the specified 'Name', ornull
. - See Also:
getMessages()
-
getMessage
NamedElement getMessage(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstNamedElement
with the specified 'Name' from the ' Message' reference list.- Parameters:
name
- The 'Name' of theNamedElement
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theNamedElement
to retrieve, ornull
.- Returns:
- The first
NamedElement
with the specified 'Name', ornull
. - See Also:
getMessages()
-
validateConsiderOrIgnore
boolean validateConsiderOrIgnore(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The interaction operator of a ConsiderIgnoreFragment must be either 'consider' or 'ignore'. (interactionOperator = #consider) or (interactionOperator = #ignore)
-
validateType
boolean validateType(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
The NamedElements must be of a type of element that identifies a message (e.g., an Operation, Reception, or a Signal). message->forAll(m | m.oclIsKindOf(Operation) or m.oclIsKindOf(Reception) or m.oclIsKindOf(Signal))
-
-