Package com.nomagic.uml2
Class MagicDrawProfile.DerivedPropertySpecificationStereotype
- java.lang.Object
 - 
- com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper<Stereotype>
 - 
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
 - 
- com.nomagic.uml2.MagicDrawProfile.DerivedPropertySpecificationStereotype
 
 
 
 
- 
- Enclosing class:
 - MagicDrawProfile
 
public static class MagicDrawProfile.DerivedPropertySpecificationStereotype extends ProfileImplementation.StereotypeWrapper
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXPRESSIONList of different types of criteria how to gather dependent elements: Simple (UML Relation, Property or Tag); Meta Chain, OCL and Binary.static java.lang.StringISREADONLYIf True, property is read only without ability to create target element.static java.lang.StringSTEREOTYPE_NAMEstatic java.lang.StringVALUESETTER 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedDerivedPropertySpecificationStereotype(MagicDrawProfile profile) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExpression(Element element, java.lang.Object value)protected voidclear()voidclearExpression(Element element)voidclearIsReadOnly(Element element)voidclearValueSetter(Element element)java.util.List<java.lang.Object>getExpression(Element element)PropertygetExpressionProperty()PropertygetIsReadOnlyProperty()StereotypegetStereotype()Returns stereotype for this wrapper.java.lang.StringgetValueSetter(Element element)PropertygetValueSetterProperty()booleanis(Element element)static booleanisInstance(Element element)java.lang.BooleanisIsReadOnly(Element element)voidremoveExpression(Element element, java.lang.Object value)voidsetExpression(Element element, java.util.Collection<java.lang.Object> value)voidsetIsReadOnly(Element element, java.lang.Boolean value)voidsetValueSetter(Element element, java.lang.String value)- 
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, isDerivedStereotype, isSameOrDerivedStereotype, unApply 
- 
Methods inherited from class com.nomagic.profiles.ProfileImplementation.ProfileElementWrapper
getElementByName 
 - 
 
 - 
 
- 
- 
Field Detail
- 
STEREOTYPE_NAME
public static final java.lang.String STEREOTYPE_NAME
- See Also:
 - Constant Field Values
 
 
- 
EXPRESSION
public static final java.lang.String EXPRESSION
List of different types of criteria how to gather dependent elements: Simple (UML Relation, Property or Tag); Meta Chain, OCL and Binary. If several criterion are defined results is union of all of them.Expression can be used in Derived Property Specification, Dependency Matrix, Dependency Map.
- See Also:
 - Constant Field Values
 
 
- 
ISREADONLY
public static final java.lang.String ISREADONLY
If True, property is read only without ability to create target element. If False Property is read / write with ability to create value according to defined expressions.- See Also:
 - Constant Field Values
 
 
- 
VALUESETTER
public static final java.lang.String VALUESETTER
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Constructor Detail
- 
DerivedPropertySpecificationStereotype
protected DerivedPropertySpecificationStereotype(MagicDrawProfile profile)
 
 - 
 
- 
Method Detail
- 
getStereotype
public Stereotype getStereotype()
Description copied from class:ProfileImplementation.StereotypeWrapperReturns stereotype for this wrapper.- Specified by:
 getStereotypein classProfileImplementation.StereotypeWrapper- Returns:
 - stereotype
 
 
- 
getExpressionProperty
@CheckForNull public Property getExpressionProperty()
 
- 
getIsReadOnlyProperty
@CheckForNull public Property getIsReadOnlyProperty()
 
- 
getValueSetterProperty
@CheckForNull public Property getValueSetterProperty()
 
- 
setExpression
public void setExpression(Element element, @CheckForNull java.util.Collection<java.lang.Object> value)
 
- 
clearExpression
public void clearExpression(Element element)
 
- 
addExpression
public void addExpression(Element element, java.lang.Object value)
 
- 
removeExpression
public void removeExpression(Element element, java.lang.Object value)
 
- 
getExpression
public java.util.List<java.lang.Object> getExpression(Element element)
 
- 
setIsReadOnly
public void setIsReadOnly(Element element, @CheckForNull java.lang.Boolean value)
 
- 
clearIsReadOnly
public void clearIsReadOnly(Element element)
 
- 
isIsReadOnly
@CheckForNull public java.lang.Boolean isIsReadOnly(Element element)
 
- 
setValueSetter
public void setValueSetter(Element element, @CheckForNull java.lang.String value)
 
- 
clearValueSetter
public void clearValueSetter(Element element)
 
- 
getValueSetter
@CheckForNull public java.lang.String getValueSetter(Element element)
 
- 
clear
protected void clear()
- Overrides:
 clearin classProfileImplementation.ProfileElementWrapper<Stereotype>
 
- 
is
public boolean is(@CheckForNull Element element) 
- 
isInstance
public static boolean isInstance(@CheckForNull Element element) 
 - 
 
 -