UML Modeling Layer

com.ibm.xtools.uml.msl.internal.redefinition
Class RedefSupportImpl

java.lang.Object
  extended by com.ibm.xtools.uml.msl.internal.redefinition.RedefSupportImpl
All Implemented Interfaces:
IRedefSupport

public class RedefSupportImpl
extends Object
implements IRedefSupport


Constructor Summary
RedefSupportImpl()
           
 
Method Summary
 boolean canRedefine(Element el, EObject contextHint)
          Answers whether the element in question is redefinable in the context of a specialized class
 void changeRedefinitionRoot(Element newRoot, Element oldRoot)
          Change the root fragment of existing redefinition hierarchy tree from oldRoot to newRoot
 RedefinableStructuralFeature[] getRedefinableFeatures()
           
 EStructuralFeature[] getSharedFeatures()
           
 boolean isEventBrokerRedefinitionAware()
           
 boolean isInheritable(Element el, EObject contextHint)
          Answers whether the element in question can be inherited in the given context
 Element redefine(Element el, EObject contextHint)
          redefines given redefinable element in the context of a specialized class
 void setRedefinition(Element redefining, Element redefined)
          Sets redefinition relationship between two existing fragments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedefSupportImpl

public RedefSupportImpl()
Method Detail

getSharedFeatures

public EStructuralFeature[] getSharedFeatures()
Specified by:
getSharedFeatures in interface IRedefSupport
Returns:
array of structural features representing shared (inheritable, but not redefinable) properties of redefinable elements

isEventBrokerRedefinitionAware

public boolean isEventBrokerRedefinitionAware()
Specified by:
isEventBrokerRedefinitionAware in interface IRedefSupport
Returns:
true if the currently instantiated event broker is redefinition-aware

redefine

public Element redefine(Element el,
                        EObject contextHint)
Description copied from interface: IRedefSupport
redefines given redefinable element in the context of a specialized class

Specified by:
redefine in interface IRedefSupport
Returns:
a new or existing redefintion

canRedefine

public boolean canRedefine(Element el,
                           EObject contextHint)
Description copied from interface: IRedefSupport
Answers whether the element in question is redefinable in the context of a specialized class

Specified by:
canRedefine in interface IRedefSupport
Returns:

isInheritable

public boolean isInheritable(Element el,
                             EObject contextHint)
Description copied from interface: IRedefSupport
Answers whether the element in question can be inherited in the given context

Specified by:
isInheritable in interface IRedefSupport
Returns:

changeRedefinitionRoot

public void changeRedefinitionRoot(Element newRoot,
                                   Element oldRoot)
Description copied from interface: IRedefSupport
Change the root fragment of existing redefinition hierarchy tree from oldRoot to newRoot

Specified by:
changeRedefinitionRoot in interface IRedefSupport

getRedefinableFeatures

public RedefinableStructuralFeature[] getRedefinableFeatures()
Specified by:
getRedefinableFeatures in interface IRedefSupport
Returns:
array of structural features representing redefinable properties of redefinable elements

setRedefinition

public void setRedefinition(Element redefining,
                            Element redefined)
Description copied from interface: IRedefSupport
Sets redefinition relationship between two existing fragments

Specified by:
setRedefinition in interface IRedefSupport

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.