Package com.nomagic.uml2
Class ValidationProfile.ValidationRuleStereotype
- java.lang.Object
-
- com.nomagic.profiles.ProfileImplementation.StereotypeWrapper
-
- com.nomagic.uml2.ValidationProfile.ValidationRuleStereotype
-
- Enclosing class:
- ValidationProfile
public static class ValidationProfile.ValidationRuleStereotype extends ProfileImplementation.StereotypeWrapper
-
-
Field Summary
Fields Modifier and Type Field Description private ValidationProfile_pprivate Propertyabbreviationstatic java.lang.StringABBREVIATIONSpecify a short word, phrase, or acronym of the validation rule.private PropertyconstrainedElementsFilterstatic java.lang.StringCONSTRAINEDELEMENTSFILTERSpecify the condition that must be met in order to validate Constrained Elements.private PropertyerrorMessagestatic java.lang.StringERRORMESSAGEDescribe the invalid situation when validation rule fails.private Propertyimplementationstatic java.lang.StringIMPLEMENTATIONprivate PropertyparentObjectstatic java.lang.StringPARENTOBJECTprivate PropertyparentRulestatic java.lang.StringPARENTRULEprivate Propertyseveritystatic java.lang.StringSEVERITYSelect the severity kind of the validation rule: debug, info, warning, error, fatal.static java.lang.StringSTEREOTYPE_NAME
-
Constructor Summary
Constructors Modifier Constructor Description protectedValidationRuleStereotype(ValidationProfile 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
-
ABBREVIATION
public static final java.lang.String ABBREVIATION
Specify a short word, phrase, or acronym of the validation rule. It allows you to distinguish the validation rules among other rules when sorting or filtering.- See Also:
- Constant Field Values
-
CONSTRAINEDELEMENTSFILTER
public static final java.lang.String CONSTRAINEDELEMENTSFILTER
Specify the condition that must be met in order to validate Constrained Elements.- See Also:
- Constant Field Values
-
ERRORMESSAGE
public static final java.lang.String ERRORMESSAGE
Describe the invalid situation when validation rule fails.- See Also:
- Constant Field Values
-
PARENTOBJECT
public static final java.lang.String PARENTOBJECT
- See Also:
- Constant Field Values
-
PARENTRULE
public static final java.lang.String PARENTRULE
- See Also:
- Constant Field Values
-
SEVERITY
public static final java.lang.String SEVERITY
Select the severity kind of the validation rule: debug, info, warning, error, fatal.- See Also:
- Constant Field Values
-
IMPLEMENTATION
public static final java.lang.String IMPLEMENTATION
- See Also:
- Constant Field Values
-
_p
private final ValidationProfile _p
-
abbreviation
@CheckForNull private Property abbreviation
-
constrainedElementsFilter
@CheckForNull private Property constrainedElementsFilter
-
errorMessage
@CheckForNull private Property errorMessage
-
parentObject
@CheckForNull private Property parentObject
-
parentRule
@CheckForNull private Property parentRule
-
severity
@CheckForNull private Property severity
-
implementation
@CheckForNull private Property implementation
-
-
Constructor Detail
-
ValidationRuleStereotype
protected ValidationRuleStereotype(ValidationProfile profile)
-
-
Method Detail
-
getStereotype
public Stereotype getStereotype()
Description copied from class:ProfileImplementation.StereotypeWrapperReturns stereotype for this wrapper.- Specified by:
getStereotypein classProfileImplementation.StereotypeWrapper- Returns:
- stereotype
-
getAbbreviationProperty
@CheckForNull public Property getAbbreviationProperty()
-
getConstrainedElementsFilterProperty
@CheckForNull public Property getConstrainedElementsFilterProperty()
-
getErrorMessageProperty
@CheckForNull public Property getErrorMessageProperty()
-
getParentObjectProperty
@CheckForNull public Property getParentObjectProperty()
-
getParentRuleProperty
@CheckForNull public Property getParentRuleProperty()
-
getSeverityProperty
@CheckForNull public Property getSeverityProperty()
-
getImplementationProperty
@CheckForNull public Property getImplementationProperty()
-
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)
-
setConstrainedElementsFilter
public void setConstrainedElementsFilter(Element element, @CheckForNull java.lang.Object value)
-
clearConstrainedElementsFilter
public void clearConstrainedElementsFilter(Element element)
-
getConstrainedElementsFilter
@CheckForNull public java.lang.Object getConstrainedElementsFilter(Element element)
-
setErrorMessage
public void setErrorMessage(Element element, @CheckForNull java.lang.String value)
-
clearErrorMessage
public void clearErrorMessage(Element element)
-
getErrorMessage
@CheckForNull public java.lang.String getErrorMessage(Element element)
-
setParentObject
public void setParentObject(Element element, @CheckForNull java.lang.Object value)
-
clearParentObject
public void clearParentObject(Element element)
-
getParentObject
@CheckForNull public java.lang.Object getParentObject(Element element)
-
clearParentRule
public void clearParentRule(Element element)
-
setSeverity
public void setSeverity(Element element, @CheckForNull ValidationProfile.SeverityKindEnum value)
-
clearSeverity
public void clearSeverity(Element element)
-
getSeverity
@CheckForNull public ValidationProfile.SeverityKindEnum getSeverity(Element element)
-
setImplementation
public void setImplementation(Element element, @CheckForNull java.lang.String value)
-
clearImplementation
public void clearImplementation(Element element)
-
getImplementation
@CheckForNull public java.lang.String getImplementation(Element element)
-
clear
protected void clear()
-
is
public boolean is(@CheckForNull Element element)Description copied from class:ProfileImplementation.StereotypeWrapperChecks 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)
-
-