UML Modeling Layer

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

java.lang.Object
  extended by com.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
      extended by com.ibm.xtools.uml.msl.internal.redefinition.RedefUtil
          extended by com.ibm.xtools.uml.msl.internal.redefinition.RedefPropertyUtil
Direct Known Subclasses:
RedefPortUtil

public class RedefPropertyUtil
extends RedefUtil


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefUtil
RedefUtil.ElementWithRedefinitionContext, RedefUtil.IRedefintionContextAccessor
 
Nested classes/interfaces inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
RedefInternalUtil.ContainmentTester
 
Field Summary
 
Fields inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefUtil
CONTEXT_HINT, EDIT_REQUEST_PARAM_SUPRESS_UI, redefUtilInstance, REFACTORING_ROOT_FRAGMENT_REMOVAL
 
Fields inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
defaultContainmentTester, EMPTY_BEHAVIOR_BODY, uml2
 
Constructor Summary
RedefPropertyUtil()
           
 
Method Summary
static Property getFragmentDefiningType(Property property, EObject contextHint)
           
static Type getLocalType(Property element)
          Returns the local type of a property.
static ValueSpecification getLowerValue(Property element, EObject contextHint)
          Returns local or inherited LowerValue of a Property/Port
static Type getType(Property element)
          Deprecated. use getType(Property fragment, EObject contextHint) instead
static Type getType(Property element, EObject contextHint)
          Returns local or inherited Type of a Property/Port
static ValueSpecification getUpperValue(Property element, EObject contextHint)
          Returns local or inherited UpperValue of a Property/Port
static boolean isLowerValueInherited(Property element, EObject contextHint)
          Returns a flag indicating whether the port/property inherits its LowerValue
static boolean isTypeInherited(Property element, EObject contextHint)
          Returns a flag indicating whether the type of a property is the same of one it redefines
static boolean isUpperValueInherited(Property element, EObject contextHint)
          Returns a flag indicating whether the port/property inherits its UpperValue
 
Methods inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefUtil
canRedefine, canRedefine, canReinherit, canReinheritViewTarget, changeRedefinitionRoot, copyAllRedefinableContent, copyLocalRedefinableContent, copySharedContent, getAdapterForEditPart, getAffectedFilesFromContextHint, getAllStructuralFeatureContent, getContainingStateMachine, getContextHint, getContextHintMap, getContextualFragment, getContextualFragment, getInheritanceTree, getInheritedContent, getInstance, getLocalContext, getLocalContextFromHint, getLocalContextFromHint, getLocalContextIfExists, getLocalFragment, getRedefinableFeatures, getRedefinedElement, getRedefinedElementOrSuperClass, getRedefinitions, getRedefinitionStructuralFeature, getRedefinitionTree, getReferencesTargets, getReferenceTarget, getReferenceTarget, getRootFragment, getSharedFeatures, getStereotypeValue, getSubclasses, getValue, isEventBrokerRedefinitionAware, isExcluded, isExcluded, isFragmentRemovalRefactoring, isInheritable, isInherited, isLocal, isRedefinitionContextValid, isRedefinitionStructuredFeature, isStereotypePropertyRedefinable, isStereotypeValueInherited, isUISuppressed, isUMLRedefinitionStructuralFeature, isValueLocal, markFragmentRemovalRefactoring, normalizeContextHint, redefine, redefine, reinherit, removeFragment, separate, setRedefinition, setSupressUIParam, unexclude
 
Methods inherited from class com.ibm.xtools.uml.msl.internal.redefinition.RedefInternalUtil
filterBySF, findBody, findBody, findOwner, findOwner, findSubclasses, findSubclasses, getContainedElement, getContextChain, getExclusionSupport, getRedefSupport, retargetReferences, retargetReferencesDownTheContextChain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RedefPropertyUtil

public RedefPropertyUtil()
Method Detail

isTypeInherited

public static boolean isTypeInherited(Property element,
                                      EObject contextHint)
Returns a flag indicating whether the type of a property is the same of one it redefines

Parameters:
element -
contextHint -
Returns:

getType

public static Type getType(Property element)
Deprecated. use getType(Property fragment, EObject contextHint) instead

Returns local or inherited Type of a Property/Port

Parameters:
element -
Returns:

getType

public static Type getType(Property element,
                           EObject contextHint)
Returns local or inherited Type of a Property/Port

Parameters:
element -
Returns:

getLocalType

public static Type getLocalType(Property element)
Returns the local type of a property.

Parameters:
element -
Returns:

getUpperValue

public static ValueSpecification getUpperValue(Property element,
                                               EObject contextHint)
Returns local or inherited UpperValue of a Property/Port

Parameters:
element -
Returns:

getLowerValue

public static ValueSpecification getLowerValue(Property element,
                                               EObject contextHint)
Returns local or inherited LowerValue of a Property/Port

Parameters:
element -
Returns:

isUpperValueInherited

public static boolean isUpperValueInherited(Property element,
                                            EObject contextHint)
Returns a flag indicating whether the port/property inherits its UpperValue

Parameters:
element -
contextHint -
Returns:

isLowerValueInherited

public static boolean isLowerValueInherited(Property element,
                                            EObject contextHint)
Returns a flag indicating whether the port/property inherits its LowerValue

Parameters:
element -
contextHint -
Returns:

getFragmentDefiningType

public static Property getFragmentDefiningType(Property property,
                                               EObject contextHint)

UML Modeling Layer

© Copyright IBM Corp. 2009. All rights reserved.