public class ValidationRule extends TypePart
| Constructor and Description |
|---|
ValidationRule(Type type,
IpsValidationRule validationRuleAnnotation,
IpsConfiguredValidationRule validationConfigurationRule,
IpsExtensionProperties extensionProperties) |
| Modifier and Type | Method and Description |
|---|---|
String |
getMsgCode()
Returns the message code of the validation rule.
|
String |
getName()
Returns the name of the validation rule.
|
Severity |
getSeverity()
Returns the
Severity of the validation rule. |
boolean |
isActivatedByDefault()
Returns whether this validation rule is activated by default.
|
boolean |
isChangingOverTime()
Returns whether this validation rule is changing over time.
|
boolean |
isProductRelevant()
Returns whether this validation rule can be configured by a product component.
|
String |
toString() |
getMessageHelper, getMessageKey, getModelType, getType, getTypeNamecreateMessageHelper, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getRelevantProductObject, invokeField, invokeMethodpublic ValidationRule(Type type, IpsValidationRule validationRuleAnnotation, IpsConfiguredValidationRule validationConfigurationRule, IpsExtensionProperties extensionProperties)
public boolean isChangingOverTime()
true if this validation rule is changing over time, otherwise
falsepublic boolean isActivatedByDefault()
true if this validation rule is activated by default,otherwise
falsepublic boolean isProductRelevant()
true if this validation rule can be configured by a product component,
otherwise falsepublic String getName()
getName in interface IModelElementgetName in class ModelElementpublic String getMsgCode()
public Severity getSeverity()
Severity of the validation rule.Severity of the validation rulepublic String toString()
toString in class ModelElementCopyright © 2020. All rights reserved.