1 /*
2 * SPDX-FileCopyrightText: Copyright (c) 2012-2026 Yegor Bugayenko
3 * SPDX-License-Identifier: MIT
4 */
5 package com.jcabi.xml;
6
7 import javax.xml.transform.URIResolver;
8
9 /**
10 * Sources for XSLT.
11 *
12 * @since 0.9
13 * @checkstyle InterfaceIsType (500 lines)
14 */
15 @FunctionalInterface
16 public interface Sources extends URIResolver {
17
18 /**
19 * Dummy sources.
20 */
21 @SuppressWarnings("PMD.ConstantsInInterface")
22 Sources DUMMY = (href, base) -> {
23 throw new UnsupportedOperationException(
24 String.format(
25 "Sources.DUMMY#resolve(\"%s\", \"%s\"): URI resolving is not configured in XSLDocument, use #with(URIResolver) method",
26 href, base
27 )
28 );
29 };
30
31 }