Abstract Class UML 2.3::RedefinableElement
Description:
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.
Direct Superclasses: NamedElementDirect Subclasses: Transition,
State,
Region,
RedefinableTemplateSignature,
Feature,
ExtensionPoint,
Classifier,
ActivityNode,
ActivityEdgeClass Precedence List: RedefinableElement,
NamedElement,
ElementProperties:
![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
isLeaf : Boolean (1 1); -- source
RedefinableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
redefinedElement :
RedefinableElement (0 *); -- source
RedefinableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
redefinitionContext :
Classifier (0 *); -- source
RedefinableElement![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
clientDependency :
Dependency (0 *); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
name : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
nameExpression :
StringExpression (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
namespace :
Namespace (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
qualifiedName : String (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
visibility :
VisibilityKind (0 1); -- source
NamedElement![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
ownedComment :
Comment (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
ownedElement :
Element (0 *); -- source
Element![](/se-interop/image/down-arrow.png?hunchentoot-session=12670%3AE9C9BC60BFF3874CCA92F1725D53BB7D)
owner :
Element (0 1); -- source
ElementConstraints:
Signature: redefinition_context_valid() : Boolean;
Description: 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.
Expression: self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))
Signature: redefinition_consistent() : Boolean;
Description: A redefining element must be consistent with each redefined element.
Expression: self.redefinedElement->forAll(re | re.isConsistentWith(self))
Signature: non_leaf_redefinition() : Boolean;
Description: A redefinable element can only redefine non-leaf redefinable elements
Expression: self.redefinedElement->forAll(not isLeaf)
Operations:
Signature: isRedefinitionContextValid(redefined : RedefinableElement; ) : Boolean;
Description: 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.
The OCL used here is not normative.Editor's notes: Use intersection/notEmpty, not includes. Removed extra close paren...MIWG: Replaced the body with TRUE, since it appears that redefinitionContext is a derived union with no subsetting properties. -- Carried over from UML 2.1.1
Expression: result = true
Original: result = redefinitionContext->exists(c | c.allParents()->includes(redefined.redefinitionContext)))
Signature: isConsistentWith(redefinee : RedefinableElement; ) : Boolean;
Description: 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.
Expression: result = false
Send questions or comments to
[email protected].