Package com.nomagic.uml2
Class MagicDrawProfile.ValidationBasedMetricDefinitionStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.uml2.MagicDrawProfile.ValidationBasedMetricDefinitionStereotype
-
- Enclosing class:
- MagicDrawProfile
public static class MagicDrawProfile.ValidationBasedMetricDefinitionStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private MagicDrawProfile
_p
static java.lang.String
ABBREVIATION
private Property
failingElementsDefinition
static java.lang.String
FAILINGELEMENTSDEFINITION
Specify the name of the menu item that displays failing elements according to a selected validation rule (e.g., Display Unsatisfied Requirements).private Property
metricType
static java.lang.String
METRICTYPE
Select the type of the metric to calculate.static java.lang.String
STEREOTYPE_NAME
private Property
validationRule
static java.lang.String
VALIDATIONRULE
Select the validation rule whose script is used to calculate metrics.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ValidationBasedMetricDefinitionStereotype(MagicDrawProfile profile)
-
Method Summary
-
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
-
FAILINGELEMENTSDEFINITION
public static final java.lang.String FAILINGELEMENTSDEFINITION
Specify the name of the menu item that displays failing elements according to a selected validation rule (e.g., Display Unsatisfied Requirements). To find the menu item, right-click the metric table cell that displays the metric according to this validation rule.- See Also:
- Constant Field Values
-
METRICTYPE
public static final java.lang.String METRICTYPE
Select the type of the metric to calculate.- See Also:
- Constant Field Values
-
VALIDATIONRULE
public static final java.lang.String VALIDATIONRULE
Select the validation rule whose script is used to calculate metrics.- See Also:
- Constant Field Values
-
ABBREVIATION
public static final java.lang.String ABBREVIATION
- See Also:
- Constant Field Values
-
_p
private final MagicDrawProfile _p
-
failingElementsDefinition
@CheckForNull private Property failingElementsDefinition
-
metricType
@CheckForNull private Property metricType
-
validationRule
@CheckForNull private Property validationRule
-
-
Constructor Detail
-
ValidationBasedMetricDefinitionStereotype
protected ValidationBasedMetricDefinitionStereotype(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
-
getFailingElementsDefinitionProperty
@CheckForNull public Property getFailingElementsDefinitionProperty()
-
getMetricTypeProperty
@CheckForNull public Property getMetricTypeProperty()
-
getValidationRuleProperty
@CheckForNull public Property getValidationRuleProperty()
-
getAbbreviationProperty
@CheckForNull public Property getAbbreviationProperty()
-
setFailingElementsDefinition
public void setFailingElementsDefinition(Element element, @CheckForNull java.lang.String value)
-
clearFailingElementsDefinition
public void clearFailingElementsDefinition(Element element)
-
getFailingElementsDefinition
@CheckForNull public java.lang.String getFailingElementsDefinition(Element element)
-
setMetricType
public void setMetricType(Element element, @CheckForNull MagicDrawProfile.MetricTypeEnum value)
-
clearMetricType
public void clearMetricType(Element element)
-
getMetricType
@CheckForNull public MagicDrawProfile.MetricTypeEnum getMetricType(Element element)
-
clearValidationRule
public void clearValidationRule(Element element)
-
setAbbreviation
public void setAbbreviation(Element element, @CheckForNull java.lang.String value)
-
clearAbbreviation
public void clearAbbreviation(Element element)
-
getAbbreviation
@CheckForNull public java.lang.String getAbbreviation(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)
-
-