Interface CsticValueValidator

All Known Implementing Classes:
MaxLengthValidatorImpl, NumericCheckerImpl

public interface CsticValueValidator
Interface for validating a characteristic value
  • Method Details

    • validate

      String validate(CsticData cstic, org.springframework.validation.Errors errorObj, String value)
      Validates the value of the cstic.
      Parameters:
      cstic - to access any meta data for validation
      errorObj - to add errors if found
      value - actual value to check
      Returns:
      modified value, or null if no value modification is required
    • appliesTo

      boolean appliesTo(CsticData cstic)
      Parameters:
      cstic -
      Returns:
      true only if this validator is apllicable to this cstic
    • appliesToValues

      boolean appliesToValues()
      Returns:
      true only if this validator is apllicable to this cstic values
    • appliesToFormattedValues

      boolean appliesToFormattedValues()
      Returns:
      true only if this validator is apllicable to formatted cstic values
    • appliesToAdditionalValues

      boolean appliesToAdditionalValues()
      Returns:
      true only if this validator is apllicable to additional cstic values