Package org.faktorips.runtime.model.type
Class ValidationRule
- java.lang.Object
-
- org.faktorips.runtime.model.type.ModelElement
-
- org.faktorips.runtime.model.type.TypePart
-
- org.faktorips.runtime.model.type.ValidationRule
-
public class ValidationRule extends TypePart
-
-
Constructor Summary
Constructors Constructor Description ValidationRule(Type type, IpsValidationRule validationRuleAnnotation, IpsConfiguredValidationRule validationConfigurationRule, IpsExtensionProperties extensionProperties, java.util.Optional<Deprecation> deprecation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMsgCode()Returns the message code of the validation rule.java.lang.StringgetName()Returns the name of the validation rule.SeveritygetSeverity()Returns theSeverityof the validation rule.booleanisActivatedByDefault()Returns whether this validation rule is activated by default.booleanisChangingOverTime()Returns whether this validation rule is changing over time.booleanisProductRelevant()Returns whether this validation rule can be configured by a product component.java.lang.StringtoString()-
Methods inherited from class org.faktorips.runtime.model.type.TypePart
getMessageHelper, getMessageKey, getModelType, getType, getTypeName
-
Methods inherited from class org.faktorips.runtime.model.type.ModelElement
createMessageHelper, getDeprecation, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getRelevantProductObject, invokeField, invokeMethod, isDeprecated
-
-
-
-
Constructor Detail
-
ValidationRule
public ValidationRule(Type type, IpsValidationRule validationRuleAnnotation, IpsConfiguredValidationRule validationConfigurationRule, IpsExtensionProperties extensionProperties, java.util.Optional<Deprecation> deprecation)
-
-
Method Detail
-
isChangingOverTime
public boolean isChangingOverTime()
Returns whether this validation rule is changing over time.- Returns:
trueif this validation rule is changing over time, otherwisefalse
-
isActivatedByDefault
public boolean isActivatedByDefault()
Returns whether this validation rule is activated by default.- Returns:
trueif this validation rule is activated by default,otherwisefalse
-
isProductRelevant
public boolean isProductRelevant()
Returns whether this validation rule can be configured by a product component.- Returns:
trueif this validation rule can be configured by a product component, otherwisefalse
-
getName
public java.lang.String getName()
Returns the name of the validation rule.- Overrides:
getNamein classModelElement- Returns:
- the name of the validation rule
-
getMsgCode
public java.lang.String getMsgCode()
Returns the message code of the validation rule.- Returns:
- the message code of the validation rule
-
getSeverity
public Severity getSeverity()
Returns theSeverityof the validation rule.- Returns:
Severityof the validation rule
-
toString
public java.lang.String toString()
- Overrides:
toStringin classModelElement
-
-