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    * @since 0.3
10   */
11  public interface Validator {
12  
13      /**
14       * Validate and throws exception if there are any problems.
15       * @param env The environment to work with
16       * @throws ValidationException In case of any violations found
17       */
18      void validate(Environment env) throws ValidationException;
19  
20      /**
21       * Name of this validator.
22       * @return Name of this validator
23       */
24      String name();
25  }