View Javadoc
1   /*
2    * SPDX-FileCopyrightText: Copyright (c) 2011-2026 Yegor Bugayenko
3    * SPDX-License-Identifier: MIT
4    */
5   package com.qulice.spi;
6   
7   /**
8    * Validator.
9    *
10   * @since 0.3
11   */
12  public interface Validator {
13  
14      /**
15       * Validate and throws exception if there are any problems.
16       *
17       * @param env The environment to work with
18       * @throws ValidationException In case of any violations found
19       */
20      void validate(Environment env) throws ValidationException;
21  
22      /**
23       * Name of this validator.
24       *
25       * @return Name of this validator
26       */
27      String name();
28  }