1 /*
2 * SPDX-FileCopyrightText: Copyright (c) 2011-2025 Yegor Bugayenko
3 * SPDX-License-Identifier: MIT
4 */
5 package com.qulice.spi;
6
7 import java.io.File;
8 import java.util.Collection;
9
10 /**
11 * Validator.
12 *
13 * @since 0.17
14 */
15 public interface ResourceValidator {
16
17 /**
18 * Validate and throws exception if there are any problems.
19 * @param files Files to validate
20 * @return Validation results
21 */
22 Collection<Violation> validate(Collection<File> files);
23
24 /**
25 * Name of this validator.
26 * @return Name of this validator.
27 */
28 String name();
29 }