public class Redefinition
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.eclipse.emf.ecore.EObject |
getContextHint(java.util.Map<?,?> parameters)
Retrieve the redefinition context hint from a parameter map
|
static org.eclipse.uml2.uml.Element |
getRedefinitionChainHead(org.eclipse.uml2.uml.Element element)
Follows the redefinition chain and returns the first fragment in the chain, the one who does not redefine any other element.
|
static org.eclipse.uml2.uml.Element |
getRedefinitionChainTail(org.eclipse.uml2.uml.Element element,
org.eclipse.emf.ecore.EObject contextHint)
Finds an element that redefines the given element in the given context or the context closest to the given context
|
static java.util.List<? extends org.eclipse.uml2.uml.Element> |
getReferencesTargets(java.util.Collection<? extends Inheritable<? extends org.eclipse.uml2.uml.Element,?>> candidates)
Returns a list of semantic elements that the views should keep as their target.
|
static org.eclipse.uml2.uml.Element |
getReferenceTarget(org.eclipse.uml2.uml.Element candidate,
org.eclipse.emf.ecore.EObject contextHint)
Returns semantic element that the view should keep as its target.
|
static boolean |
isRedefinableProperty(org.eclipse.uml2.uml.Property property)
Returns whether the specified property is redefinable according to this
implementation's rules.
|
static boolean |
isRedefinableStateMachine(org.eclipse.uml2.uml.StateMachine stateMachine)
Returns whether the specified state machine is redefinable according to
this implementation's rules.
|
static void |
setContextHint(java.util.Map parameters,
java.lang.Object contextHint)
Set the redefinition context hint in a parameter map
|
static PortRedefinition |
wrap(org.eclipse.uml2.uml.Port port,
org.eclipse.emf.ecore.EObject contextHint)
Use the Redefinition Factory to create a redefinition aware wrapper for a
port.
|
static PropertyRedefinition<org.eclipse.uml2.uml.Property> |
wrap(org.eclipse.uml2.uml.Property property,
org.eclipse.emf.ecore.EObject contextHint)
Use the Redefinition Factory to create a redefinition aware wrapper for a
property.
|
static RegionRedefinition |
wrap(org.eclipse.uml2.uml.Region region,
org.eclipse.emf.ecore.EObject contextHint)
Use the Redefinition Factory to create a redefinition aware wrapper for a
region.
|
static StateRedefinition |
wrap(org.eclipse.uml2.uml.State state,
org.eclipse.emf.ecore.EObject contextHint)
Use the Redefinition Factory to create a redefinition aware wrapper for a
state.
|
static StateMachineRedefinition |
wrap(org.eclipse.uml2.uml.StateMachine stateMachine,
org.eclipse.emf.ecore.EObject contextHint)
Use the Redefinition Factory to create a redefinition aware wrapper for a
state machine.
|
static TransitionRedefinition |
wrap(org.eclipse.uml2.uml.Transition transition,
org.eclipse.emf.ecore.EObject contextHint)
Use the Redefinition Factory to create a redefinition aware wrapper for a
transition.
|
static InheritableVertex<org.eclipse.uml2.uml.Vertex> |
wrap(org.eclipse.uml2.uml.Vertex vertex,
org.eclipse.emf.ecore.EObject contextHint)
Use the Redefinition Factory to create a redefinition aware wrapper for a
vertex.
|
public static StateMachineRedefinition wrap(org.eclipse.uml2.uml.StateMachine stateMachine, org.eclipse.emf.ecore.EObject contextHint)
stateMachine
- StateMachine to wrapcontextHint
- Context for the redefinitionpublic static StateRedefinition wrap(org.eclipse.uml2.uml.State state, org.eclipse.emf.ecore.EObject contextHint)
state
- State to wrapcontextHint
- Context for the redefinitionpublic static RegionRedefinition wrap(org.eclipse.uml2.uml.Region region, org.eclipse.emf.ecore.EObject contextHint)
region
- Region to wrapcontextHint
- Context for the redefinitionpublic static TransitionRedefinition wrap(org.eclipse.uml2.uml.Transition transition, org.eclipse.emf.ecore.EObject contextHint)
transition
- Transition to wrapcontextHint
- Context for the redefinitionpublic static InheritableVertex<org.eclipse.uml2.uml.Vertex> wrap(org.eclipse.uml2.uml.Vertex vertex, org.eclipse.emf.ecore.EObject contextHint)
vertex
- Vertex to wrapcontextHint
- Context for the redefinitionpublic static PropertyRedefinition<org.eclipse.uml2.uml.Property> wrap(org.eclipse.uml2.uml.Property property, org.eclipse.emf.ecore.EObject contextHint)
property
- Property to wrapcontextHint
- EObject directly or indirectly owned by the redefinition
context element or the redefinition context element itselfpublic static PortRedefinition wrap(org.eclipse.uml2.uml.Port port, org.eclipse.emf.ecore.EObject contextHint)
port
- Port to wrapcontextHint
- EObject directly or indirectly owned by the redefinition
context element or the redefinition context element itselfpublic static org.eclipse.uml2.uml.Element getRedefinitionChainHead(org.eclipse.uml2.uml.Element element)
element
- public static org.eclipse.uml2.uml.Element getRedefinitionChainTail(org.eclipse.uml2.uml.Element element, org.eclipse.emf.ecore.EObject contextHint)
element
- contextHint
- is an EObject owned directly or indirectly by the redefinition context (StateMachine or Classifier)public static org.eclipse.emf.ecore.EObject getContextHint(java.util.Map<?,?> parameters)
parameters
- Request parameterspublic static void setContextHint(java.util.Map parameters, java.lang.Object contextHint)
parameters
- Request parameterscontextHint
- Context objectpublic static java.util.List<? extends org.eclipse.uml2.uml.Element> getReferencesTargets(java.util.Collection<? extends Inheritable<? extends org.eclipse.uml2.uml.Element,?>> candidates)
candidates
- the collection of inheritable elements that views would "normally" use or their redefinitionspublic static org.eclipse.uml2.uml.Element getReferenceTarget(org.eclipse.uml2.uml.Element candidate, org.eclipse.emf.ecore.EObject contextHint)
candidate
- the semantic element that view would "normally" use or its redefinitioncontextHint
- is an EObject owned directly or indirectly by the redefinition context (StateMachine or Classifier)public static boolean isRedefinableProperty(org.eclipse.uml2.uml.Property property)
property
- Property to testpublic static boolean isRedefinableStateMachine(org.eclipse.uml2.uml.StateMachine stateMachine)
stateMachine
- StateMachine to test