Interface ConfigValidator<T extends ConfigValidatable>

Type Parameters:
T - The type of configuration object being validated, must implement ConfigValidatable
All Known Subinterfaces:
ModeAwareValidator<T>, PipelineClusterConfigValidator, PipelineConfigValidator

public interface ConfigValidator<T extends ConfigValidatable>
Base interface for all configuration validators in the Rokkon pipeline system.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Returns the priority of this validator (lower numbers = higher priority).
    default String
    Returns the name of this validator for error reporting.
    Returns the set of validation modes this validator supports.
    validate(T config)
    Validates the given configuration object and returns a validation result.
  • Method Details

    • validate

      ValidationResult validate(T config)
      Validates the given configuration object and returns a validation result.
      Parameters:
      config - The configuration object to validate
      Returns:
      ValidationResult containing the validation outcome
    • getValidatorName

      default String getValidatorName()
      Returns the name of this validator for error reporting.
      Returns:
      A human-readable name for this validator
    • getPriority

      default int getPriority()
      Returns the priority of this validator (lower numbers = higher priority). Validators with higher priority are executed first.
      Returns:
      Priority level (default is 100)
    • supportedModes

      default Set<ValidationMode> supportedModes()
      Returns the set of validation modes this validator supports. Defaults to all modes (PRODUCTION, DESIGN, TESTING) for backward compatibility.
      Returns:
      Set of ValidationMode enums this validator should run for