Class StringLiteralParamValidator

java.lang.Object
com.e1c.langtool.v8.dt.bsl.settings.impl.StringLiteralParamValidator
All Implemented Interfaces:
FeatureValueValidator

public class StringLiteralParamValidator extends Object implements FeatureValueValidator
  • Constructor Details

    • StringLiteralParamValidator

      public StringLiteralParamValidator()
  • Method Details

    • isValid

      public org.eclipse.core.runtime.IStatus isValid(String value, FeatureValueValidator.ValidationContext context)
      Description copied from interface: FeatureValueValidator
      Returns a string indicating whether the given value is valid; null means valid, and non-null means invalid, with the result being the error message to display to the end user.

      It is the responsibility of the implementor to fully format the message before returning it.

      Specified by:
      isValid in interface FeatureValueValidator
      Parameters:
      value - the translated value to be validated
      Returns:
      the error message, or null indicating that the value is valid
    • createErrorMessage

      protected String createErrorMessage(Set<String> missing)