Package com.nomagic.magicdraw.validation
Interface ValidationRuleSpecification
-
@OpenApiAll public interface ValidationRuleSpecification
ValidationRuleSpecification
is a wrapper for a constraint with applied validationRule stereotype. It provides convenience methods to access tag values.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ElementExpression
getParentObjectExpression(Class context)
Returns parent object expression.ValidationRuleSpecification
getParentRule()
Returns parent rule.Constraint
getParentValidationRuleConstraint()
Returns parent validation rule constraint.Constraint
getStereotypedConstraint()
Returns stereotyped constraint.
-
-
-
Method Detail
-
getParentRule
@CheckForNull ValidationRuleSpecification getParentRule()
Returns parent rule.- Returns:
- parent rule.
-
getParentValidationRuleConstraint
@CheckForNull Constraint getParentValidationRuleConstraint()
Returns parent validation rule constraint.- Returns:
- parent validation rule.
-
getParentObjectExpression
@CheckForNull ElementExpression getParentObjectExpression(Class context)
Returns parent object expression.- Parameters:
context
- context of the expression.- Returns:
- parent object expression.
-
getStereotypedConstraint
Constraint getStereotypedConstraint()
Returns stereotyped constraint.- Returns:
- stereotyped constraint.
-
-