1 /*
2 * SPDX-FileCopyrightText: Copyright (c) 2011-2025 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 * @param env The environment to work with
17 * @throws ValidationException In case of any violations found
18 */
19 void validate(Environment env) throws ValidationException;
20
21 /**
22 * Name of this validator.
23 * @return Name of this validator.
24 */
25 String name();
26 }