1 /*
2 * SPDX-FileCopyrightText: Copyright (c) 2011-2026 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 * @since 0.17
13 */
14 public interface ResourceValidator {
15
16 /**
17 * Validate and throws exception if there are any problems.
18 * @param files Files to validate
19 * @return Validation results
20 */
21 Collection<Violation> validate(Collection<File> files);
22
23 /**
24 * Name of this validator.
25 * @return Name of this validator
26 */
27 String name();
28 }