Package com.sodius.mdw.metamodel.uml21
Interface RedefinableElement
-
- All Superinterfaces:
Comparable<Object>
,Element
,org.eclipse.emf.ecore.EModelElement
,org.eclipse.emf.ecore.EObject
,MDWEObject
,MDWObject
,NamedElement
,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
AcceptCallAction
,AcceptEventAction
,Action
,ActionInputPin
,Activity
,ActivityEdge
,ActivityFinalNode
,ActivityNode
,ActivityParameterNode
,Actor
,AddStructuralFeatureValueAction
,AddVariableValueAction
,Artifact
,Association
,AssociationClass
,Behavior
,BehavioralFeature
,BehavioredClassifier
,BroadcastSignalAction
,CallAction
,CallBehaviorAction
,CallOperationAction
,CentralBufferNode
,Class
,Classifier
,ClearAssociationAction
,ClearStructuralFeatureAction
,ClearVariableAction
,Collaboration
,CommunicationPath
,Component
,ConditionalNode
,Connector
,ControlFlow
,ControlNode
,CreateLinkAction
,CreateLinkObjectAction
,CreateObjectAction
,DataStoreNode
,DataType
,DecisionNode
,DeploymentSpecification
,DestroyLinkAction
,DestroyObjectAction
,Device
,EncapsulatedClassifier
,Enumeration
,ExecutableNode
,ExecutionEnvironment
,ExpansionNode
,ExpansionRegion
,Extension
,ExtensionEnd
,ExtensionPoint
,Feature
,FinalNode
,FinalState
,FlowFinalNode
,ForkNode
,FunctionBehavior
,InformationItem
,InitialNode
,InputPin
,Interaction
,Interface
,InvocationAction
,JoinNode
,LinkAction
,LoopNode
,MergeNode
,Node
,ObjectFlow
,ObjectNode
,OpaqueAction
,OpaqueBehavior
,Operation
,OutputPin
,Pin
,Port
,PrimitiveType
,Property
,ProtocolStateMachine
,ProtocolTransition
,RaiseExceptionAction
,ReadExtentAction
,ReadIsClassifiedObjectAction
,ReadLinkAction
,ReadLinkObjectEndAction
,ReadLinkObjectEndQualifierAction
,ReadSelfAction
,ReadStructuralFeatureAction
,ReadVariableAction
,Reception
,ReclassifyObjectAction
,RedefinableTemplateSignature
,ReduceAction
,Region
,RemoveStructuralFeatureValueAction
,RemoveVariableValueAction
,ReplyAction
,SendObjectAction
,SendSignalAction
,SequenceNode
,Signal
,StartClassifierBehaviorAction
,State
,StateMachine
,Stereotype
,StructuralFeature
,StructuralFeatureAction
,StructuredActivityNode
,StructuredClassifier
,TestIdentityAction
,Transition
,UnmarshallAction
,UseCase
,ValuePin
,ValueSpecificationAction
,VariableAction
,WriteLinkAction
,WriteStructuralFeatureAction
,WriteVariableAction
public interface RedefinableElement extends NamedElement
A representation of the model object 'Redefinable Element'. A redefinable element is an element that, when defined in the context of a classifier, can be redefined more specifically or differently in the context of another classifier that specializes (directly or indirectly) the context classifier.The following features are supported:
- See Also:
UMLPackage.getRedefinableElement()
-
-
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 RedefinableElement
getRedefinedElement(String name)
Retrieves the firstRedefinableElement
with the specified 'Name' from the ' Redefined Element' reference list.RedefinableElement
getRedefinedElement(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstRedefinableElement
with the specified 'Name' from the ' Redefined Element' reference list.MDWEList<RedefinableElement>
getRedefinedElements()
Returns the value of the 'Redefined Element' reference list.Classifier
getRedefinitionContext(String name)
Retrieves the firstClassifier
with the specified 'Name' from the ' Redefinition Context' reference list.Classifier
getRedefinitionContext(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifier
with the specified 'Name' from the ' Redefinition Context' reference list.MDWEList<Classifier>
getRedefinitionContexts()
Returns the value of the 'Redefinition Context' reference list.boolean
isConsistentWith(RedefinableElement redefinee)
The query isConsistentWith() specifies, for any two RedefinableElements in a context in which redefinition is possible, whether redefinition would be logically consistent.boolean
isLeaf()
Returns the value of the 'Is Leaf' attribute.boolean
isRedefinitionContextValid(RedefinableElement redefined)
The query isRedefinitionContextValid() specifies whether the redefinition contexts of this RedefinableElement are properly related to the redefinition contexts of the specified RedefinableElement to allow this element to redefine the other.void
setIsLeaf(boolean value)
Sets the value of the 'Is Leaf
' attribute.boolean
validateRedefinitionConsistent(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
A redefining element must be consistent with each redefined element.boolean
validateRedefinitionContextValid(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
At least one of the redefinition contexts of the redefining element must be a specialization of at least one of the redefinition contexts for each redefined element.-
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.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
-
isLeaf
boolean isLeaf()
Returns the value of the 'Is Leaf' attribute. The default value is"false"
. Indicates whether it is possible to further specialize a RedefinableElement. If the value is true, then it is not possible to further specialize the RedefinableElement.- Returns:
- the value of the 'Is Leaf' attribute.
- See Also:
setIsLeaf(boolean)
,UMLPackage.getRedefinableElement_IsLeaf()
-
setIsLeaf
void setIsLeaf(boolean value)
Sets the value of the 'Is Leaf
' attribute.- Parameters:
value
- the new value of the 'Is Leaf' attribute.- See Also:
isLeaf()
-
getRedefinedElements
MDWEList<RedefinableElement> getRedefinedElements()
Returns the value of the 'Redefined Element' reference list. The list contents are of typeRedefinableElement
. The redefinable element that is being redefined by this element.- Returns:
- the value of the 'Redefined Element' reference list.
- See Also:
UMLPackage.getRedefinableElement_RedefinedElement()
-
getRedefinedElement
RedefinableElement getRedefinedElement(String name)
Retrieves the firstRedefinableElement
with the specified 'Name' from the ' Redefined Element' reference list.- Parameters:
name
- The 'Name' of theRedefinableElement
to retrieve, ornull
.- Returns:
- The first
RedefinableElement
with the specified 'Name', ornull
. - See Also:
getRedefinedElements()
-
getRedefinedElement
RedefinableElement getRedefinedElement(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstRedefinableElement
with the specified 'Name' from the ' Redefined Element' reference list.- Parameters:
name
- The 'Name' of theRedefinableElement
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theRedefinableElement
to retrieve, ornull
.- Returns:
- The first
RedefinableElement
with the specified 'Name', ornull
. - See Also:
getRedefinedElements()
-
getRedefinitionContexts
MDWEList<Classifier> getRedefinitionContexts()
Returns the value of the 'Redefinition Context' reference list. The list contents are of typeClassifier
. References the contexts that this element may be redefined from.- Returns:
- the value of the 'Redefinition Context' reference list.
- See Also:
UMLPackage.getRedefinableElement_RedefinitionContext()
-
getRedefinitionContext
Classifier getRedefinitionContext(String name)
Retrieves the firstClassifier
with the specified 'Name' from the ' Redefinition Context' reference list.- Parameters:
name
- The 'Name' of theClassifier
to retrieve, ornull
.- Returns:
- The first
Classifier
with the specified 'Name', ornull
. - See Also:
getRedefinitionContexts()
-
getRedefinitionContext
Classifier getRedefinitionContext(String name, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass)
Retrieves the firstClassifier
with the specified 'Name' from the ' Redefinition Context' reference list.- Parameters:
name
- The 'Name' of theClassifier
to retrieve, ornull
.ignoreCase
- Whether to ignore case inString
comparisons.eClass
- The Ecore class of theClassifier
to retrieve, ornull
.- Returns:
- The first
Classifier
with the specified 'Name', ornull
. - See Also:
getRedefinitionContexts()
-
validateRedefinitionContextValid
boolean validateRedefinitionContextValid(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
At least one of the redefinition contexts of the redefining element must be a specialization of at least one of the redefinition contexts for each redefined element. self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))
-
validateRedefinitionConsistent
boolean validateRedefinitionConsistent(org.eclipse.emf.common.util.DiagnosticChain diagnostics, Map context)
A redefining element must be consistent with each redefined element. self.redefinedElement->forAll(re | re.isConsistentWith(self))
-
isRedefinitionContextValid
boolean isRedefinitionContextValid(RedefinableElement redefined)
The query isRedefinitionContextValid() specifies whether the redefinition contexts of this RedefinableElement are properly related to the redefinition contexts of the specified RedefinableElement to allow this element to redefine the other. By default at least one of the redefinition contexts of this element must be a specialization of at least one of the redefinition contexts of the specified element. result = redefinitionContext->exists(c | c.allParents()->includes(redefined.redefinitionContext)))
-
isConsistentWith
boolean isConsistentWith(RedefinableElement redefinee)
The query isConsistentWith() specifies, for any two RedefinableElements in a context in which redefinition is possible, whether redefinition would be logically consistent. By default, this is false; this operation must be overridden for subclasses of RedefinableElement to define the consistency conditions. redefinee.isRedefinitionContextValid(self) result = false
-
-