org.eclipse.uml2
Interface RedefinableElement

All Superinterfaces:
Element, EModelElement, EObject, NamedElement, Notifier, TemplateableElement
All Known Subinterfaces:
AcceptCallAction, AcceptEventAction, Action, Activity, ActivityEdge, ActivityFinalNode, ActivityNode, ActivityParameterNode, Actor, AddStructuralFeatureValueAction, AddVariableValueAction, ApplyFunctionAction, 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, DurationObservationAction, EncapsulatedClassifier, Enumeration, ExecutableNode, ExecutionEnvironment, ExpansionNode, ExpansionRegion, Extension, ExtensionEnd, ExtensionPoint, Feature, FinalNode, FinalState, FlowFinalNode, ForkNode, InformationItem, InitialNode, InputPin, Interaction, Interface, InvocationAction, JoinNode, LinkAction, LoopNode, MergeNode, Node, ObjectFlow, ObjectNode, Operation, OutputPin, ParameterableClassifier, Pin, Port, PrimitiveType, Property, ProtocolStateMachine, ProtocolTransition, RaiseExceptionAction, ReadExtentAction, ReadIsClassifiedObjectAction, ReadLinkAction, ReadLinkObjectEndAction, ReadLinkObjectEndQualifierAction, ReadSelfAction, ReadStructuralFeatureAction, ReadVariableAction, Reception, ReclassifyObjectAction, RedefinableTemplateSignature, Region, RemoveStructuralFeatureValueAction, RemoveVariableValueAction, ReplyAction, SendObjectAction, SendSignalAction, Signal, StartOwnedBehaviorAction, State, StateMachine, Stereotype, StructuralFeature, StructuralFeatureAction, StructuredActivityNode, StructuredClassifier, TemplateableClassifier, TestIdentityAction, TimeObservationAction, Transition, UseCase, ValuePin, VariableAction, WriteLinkAction, WriteStructuralFeatureAction, WriteVariableAction

public interface RedefinableElement
extends NamedElement

A representation of the model object 'Redefinable Element'. A redefinable element is a named element that can be redefined in the context of a generalization. RedefinableElement is an abstract metaclass.

The following features are supported:

See Also:
UML2Package.getRedefinableElement()

Field Summary
static String copyright
           
 
Fields inherited from interface org.eclipse.uml2.NamedElement
SEPARATOR
 
Method Summary
 EList getRedefinedElements()
           
 Classifier getRedefinitionContext(String unqualifiedName)
          Retrieves the Classifier with the specified name from the 'Redefinition Context' reference list
 EList getRedefinitionContexts()
          Returns the value of the 'Redefinition Context' reference list.
 boolean isConsistentWith(RedefinableElement redefinee)
           A query based on the following OCL expression: false
 boolean isLeaf()
          Returns the value of the 'Is Leaf' attribute.
 boolean isRedefinitionContextValid(RedefinableElement redefinable)
           A query based on the following OCL expression: self.redefinitionContext->exists(c | redefinable.redefinitionContext->exists(r | c.allParents()->includes(r)))
 void setIsLeaf(boolean value)
          Sets the value of the 'Is Leaf' attribute
 boolean validateRedefinitionConsistent(DiagnosticChain diagnostics, Map context)
           An invariant constraint based on the following OCL expression: self.redefinedElement->forAll(re | re.isConsistentWith(self))
 boolean validateRedefinitionContextValid(DiagnosticChain diagnostics, Map context)
           An invariant constraint based on the following OCL expression: self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))
 
Methods inherited from interface org.eclipse.uml2.NamedElement
allNamespaces, createNameExpression, getClientDependencies, getClientDependency, getName, getNameExpression, getNamespace, getOwnedElements, getOwner, getQualifiedName, getVisibility, isDistinguishableFrom, qualifiedName, separator, setName, setNameExpression, setVisibility, validateNoName, validateQualifiedName, validateVisibilityNeedsOwnership
 
Methods inherited from interface org.eclipse.uml2.TemplateableElement
createOwnedTemplateSignature, createTemplateBinding, getOwnedTemplateSignature, getTemplateBindings, parameterableElements, setOwnedTemplateSignature
 
Methods inherited from interface org.eclipse.uml2.Element
addKeyword, allOwnedElements, apply, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedVersion, getKeywords, getModel, getNearestPackage, getOwnedComments, getValue, hasKeyword, isApplied, isRequired, mustBeOwned, removeKeyword, setValue, unapply, 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, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Field Detail

copyright

public static final String copyright

See Also:
Constant Field Values
Method Detail

isLeaf

public boolean isLeaf()
Returns the value of the 'Is Leaf' attribute. The default value is "false".

If the meaning of the 'Is Leaf' attribute isn't clear, there really should be more of a description here...

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. Default value is false.

Returns:
the value of the 'Is Leaf' attribute.
See Also:
setIsLeaf(boolean), UML2Package.getRedefinableElement_IsLeaf()

setIsLeaf

public 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()

validateRedefinitionContextValid

public boolean validateRedefinitionContextValid(DiagnosticChain diagnostics,
                                                Map context)
An invariant constraint based on the following OCL expression: self.redefinedElement->forAll(e | self.isRedefinitionContextValid(e))


validateRedefinitionConsistent

public boolean validateRedefinitionConsistent(DiagnosticChain diagnostics,
                                              Map context)
An invariant constraint based on the following OCL expression: self.redefinedElement->forAll(re | re.isConsistentWith(self))


getRedefinitionContexts

public EList getRedefinitionContexts()
Returns the value of the 'Redefinition Context' reference list. The list contents are of type Classifier.

If the meaning of the 'Redefinition Context' reference list isn't clear, there really should be more of a description here...

the contexts that this element may be redefined from. This is a derived union.

Returns:
the value of the 'Redefinition Context' reference list.
See Also:
UML2Package.getRedefinableElement_RedefinitionContext()

getRedefinitionContext

public Classifier getRedefinitionContext(String unqualifiedName)
Retrieves the Classifier with the specified name from the 'Redefinition Context' reference list.

Parameters:
unqualifiedName - The unqualified name of the Classifier to retrieve.
Returns:
The Classifier with the specified name, or null.
See Also:
getRedefinitionContexts()

isConsistentWith

public boolean isConsistentWith(RedefinableElement redefinee)
A query based on the following OCL expression: false


isRedefinitionContextValid

public boolean isRedefinitionContextValid(RedefinableElement redefinable)
A query based on the following OCL expression: self.redefinitionContext->exists(c | redefinable.redefinitionContext->exists(r | c.allParents()->includes(r)))


getRedefinedElements

public EList getRedefinedElements()


Copyright 2003, 2004 IBM Corporation and others.
All Rights Reserved.