Class ValidationRule


public class ValidationRule extends TypePart
  • Constructor Details

  • Method Details

    • isChangingOverTime

      public boolean isChangingOverTime()
      Returns whether this validation rule is changing over time.
      Specified by:
      isChangingOverTime in class TypePart
      Returns:
      true if this validation rule is changing over time, otherwise false
    • isActivatedByDefault

      public boolean isActivatedByDefault()
      Returns whether this validation rule is activated by default.
      Returns:
      true if this validation rule is activated by default,otherwise false
    • isProductRelevant

      public boolean isProductRelevant()
      Returns whether this validation rule can be configured by a product component.
      Returns:
      true if this validation rule can be configured by a product component, otherwise false
    • getName

      public String getName()
      Returns the name of the validation rule.
      Overrides:
      getName in class ModelElement
      Returns:
      the name of the validation rule
    • getMsgCode

      public String getMsgCode()
      Returns the message code of the validation rule.
      Returns:
      the message code of the validation rule
    • getSeverity

      public Severity getSeverity()
      Returns the Severity of the validation rule.
      Returns:
      Severity of the validation rule
    • getDocumentation

      protected String getDocumentation(Locale locale, DocumentationKind type, String fallback)
      Overrides:
      getDocumentation in class ModelElement
    • isOverriding

      public boolean isOverriding()
      Returns true if this rule overrides another rule. That means a supertype declares a rule with the same name.
      Returns:
      true if this rule overrides another, false if not
      See Also:
    • getSuperValidationRule

      public ValidationRule getSuperValidationRule()
      Returns the rule that is overridden by this rule if this rule overrides another one. Otherwise returns null.
      Returns:
      The rule that is overridden by this rule.
      See Also:
    • findSuperValidationRule

      public Optional<ValidationRule> findSuperValidationRule()
      Returns the rule that is overridden by this rule if this rule overrides another one. Otherwise returns null.
      Returns:
      The rule that is overridden by this rule.
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class ModelElement