Package com.nomagic.uml2
Class MagicDrawProfile.DerivedPropertySpecificationStereotype
- java.lang.Object
-
- 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 private MagicDrawProfile
_p
private Property
expression
static 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.private Property
isReadOnly
static java.lang.String
ISREADONLY
If True, property is read only without ability to create target element.static java.lang.String
STEREOTYPE_NAME
private Property
valueSetter
static java.lang.String
VALUESETTER
-
Constructor Summary
Constructors Modifier Constructor Description protected
DerivedPropertySpecificationStereotype(MagicDrawProfile profile)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExpression(Element element, java.lang.Object value)
protected void
clear()
void
clearExpression(Element element)
void
clearIsReadOnly(Element element)
void
clearValueSetter(Element element)
java.util.List<java.lang.Object>
getExpression(Element element)
Property
getExpressionProperty()
Property
getIsReadOnlyProperty()
Stereotype
getStereotype()
Returns stereotype for this wrapper.java.lang.String
getValueSetter(Element element)
Property
getValueSetterProperty()
boolean
is(Element element)
Checks if stereotype of this wrapper is applied to given element.static boolean
isInstance(Element element)
java.lang.Boolean
isIsReadOnly(Element element)
void
removeExpression(Element element, java.lang.Object value)
void
setExpression(Element element, java.util.Collection<java.lang.Object> value)
void
setIsReadOnly(Element element, java.lang.Boolean value)
void
setValueSetter(Element element, java.lang.String value)
-
Methods inherited from class com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
apply, getElement, getTagByName, isDerivedStereotype, isSameOrDerivedStereotype, toBoolean, toDouble, toInteger, toString, unApply
-
-
-
-
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
-
_p
private final MagicDrawProfile _p
-
expression
@CheckForNull private Property expression
-
isReadOnly
@CheckForNull private Property isReadOnly
-
valueSetter
@CheckForNull private Property valueSetter
-
-
Constructor Detail
-
DerivedPropertySpecificationStereotype
protected DerivedPropertySpecificationStereotype(MagicDrawProfile profile)
-
-
Method Detail
-
getStereotype
public Stereotype getStereotype()
Description copied from class:ProfileImplementation.StereotypeWrapper
Returns stereotype for this wrapper.- Specified by:
getStereotype
in 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()
-
is
public boolean is(@CheckForNull Element element)
Description copied from class:ProfileImplementation.StereotypeWrapper
Checks if stereotype of this wrapper is applied to given element.- Parameters:
element
- element- Returns:
- true if stereotype of this wrapper is applied to given element
-
isInstance
public static boolean isInstance(@CheckForNull Element element)
-
-