public static class MagicDrawProfile.DerivedPropertySpecificationStereotype extends ProfileImplementation.StereotypeWrapper
Modifier and Type | Field and Description |
---|---|
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.
|
static java.lang.String |
ISREADONLY
If True, property is read only without ability to create target element.
|
static java.lang.String |
STEREOTYPE_NAME |
static java.lang.String |
VALUESETTER |
Modifier | Constructor and Description |
---|---|
protected |
DerivedPropertySpecificationStereotype(MagicDrawProfile profile) |
Modifier and Type | Method and 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) |
apply, unApply
getElement, getElementByName
public static final java.lang.String STEREOTYPE_NAME
public static final java.lang.String EXPRESSION
Expression can be used in Derived Property Specification, Dependency Matrix, Dependency Map.
public static final java.lang.String ISREADONLY
public static final java.lang.String VALUESETTER
protected DerivedPropertySpecificationStereotype(MagicDrawProfile profile)
public Stereotype getStereotype()
ProfileImplementation.StereotypeWrapper
getStereotype
in class ProfileImplementation.StereotypeWrapper
@CheckForNull public Property getExpressionProperty()
@CheckForNull public Property getIsReadOnlyProperty()
@CheckForNull public Property getValueSetterProperty()
public void setExpression(Element element, @CheckForNull java.util.Collection<java.lang.Object> value)
public void clearExpression(Element element)
public void addExpression(Element element, java.lang.Object value)
public void removeExpression(Element element, java.lang.Object value)
public java.util.List<java.lang.Object> getExpression(Element element)
public void setIsReadOnly(Element element, @CheckForNull java.lang.Boolean value)
public void clearIsReadOnly(Element element)
@CheckForNull public java.lang.Boolean isIsReadOnly(Element element)
public void setValueSetter(Element element, @CheckForNull java.lang.String value)
public void clearValueSetter(Element element)
@CheckForNull public java.lang.String getValueSetter(Element element)
protected void clear()
clear
in class ProfileImplementation.ProfileElementWrapper<Stereotype>
public boolean is(@CheckForNull Element element)
ProfileImplementation.StereotypeWrapper
is
in class ProfileImplementation.StereotypeWrapper
element
- elementpublic static boolean isInstance(@CheckForNull Element element)