UML Modeling Layer

com.ibm.xtools.uml.msl.internal.redefinition
Interface RedefinableStructuralFeature

All Known Implementing Classes:
MultiValueRedefinableStructuralFeature, RedefStateMachineUtil.Regions, SingleValueRedefinableStructuralFeature

public interface RedefinableStructuralFeature

Represents a redefinable structural feature


Method Summary
 void absorbInheritedContent(Element redefining, Classifier newRootRedefContext, boolean absorbCollections, boolean absorbReferencees, Map replacements)
          Transfers content of redefined fragment to redefining fragment
 void absorbInheritedContentFromPredecessor(Element redefining, Map replacements)
          Transfers content of redefined fragment to redefining fragment
 void copyContent(Element source, Element target)
          Copy local and inherited content from source to target
 void copyLocalContent(Element source, Element target)
          copies local content from the source element to the target element
 EStructuralFeature getBasicFeature()
           
 Object getInheritedContent(Element fragment)
          Gets inherited content of the given CONTEXTUAL fragment
 Object getValue(Element element, EObject contextHint)
           
 boolean isApplicable(Element element)
           
 void onExclude(RedefinableElement el)
          Removes content from the feature when the given fragment gets excluded
 void onRedefine(Element redefined, Element redefining)
          Sets the newly redefined fragment's feature in correct state
 void setValue(Element element, Object value)
          sets the value to the given CONTEXTUAL (local to its context) fragment
 

Method Detail

getBasicFeature

EStructuralFeature getBasicFeature()
Returns:
structural feature this one is based on

isApplicable

boolean isApplicable(Element element)
Parameters:
element -
Returns:
true if the element has this feature

onRedefine

void onRedefine(Element redefined,
                Element redefining)
Sets the newly redefined fragment's feature in correct state

Parameters:
redefined -
redefining -

absorbInheritedContent

void absorbInheritedContent(Element redefining,
                            Classifier newRootRedefContext,
                            boolean absorbCollections,
                            boolean absorbReferencees,
                            Map replacements)
Transfers content of redefined fragment to redefining fragment


absorbInheritedContentFromPredecessor

void absorbInheritedContentFromPredecessor(Element redefining,
                                           Map replacements)
Transfers content of redefined fragment to redefining fragment


copyContent

void copyContent(Element source,
                 Element target)
Copy local and inherited content from source to target

Parameters:
source -
target -

getInheritedContent

Object getInheritedContent(Element fragment)
Gets inherited content of the given CONTEXTUAL fragment

Parameters:
fragment -
Returns:

getValue

Object getValue(Element element,
                EObject contextHint)
Parameters:
element -
Returns:
feature value for the given fragment

setValue

void setValue(Element element,
              Object value)
sets the value to the given CONTEXTUAL (local to its context) fragment

Parameters:
element -

copyLocalContent

void copyLocalContent(Element source,
                      Element target)
copies local content from the source element to the target element

Parameters:
source -
target -

onExclude

void onExclude(RedefinableElement el)
Removes content from the feature when the given fragment gets excluded

Parameters:
el -

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.