1
2
3
4
5
6 package gov.nist.secauto.metaschema.core.model;
7
8 import java.net.URI;
9
10 import edu.umd.cs.findbugs.annotations.NonNull;
11 import edu.umd.cs.findbugs.annotations.Nullable;
12
13
14
15
16 public interface IResourceResolver {
17
18
19
20
21
22 @Nullable
23 default IUriResolver getUriResolver() {
24
25
26 return null;
27 }
28
29
30
31
32
33
34
35
36
37 @NonNull
38 default URI resolve(@NonNull URI uri) {
39 IUriResolver resolver = getUriResolver();
40 return resolver == null ? uri : resolver.resolve(uri);
41 }
42 }