13 lines
498 B
Text
13 lines
498 B
Text
|
|
class NoResourceResolver implements LSResourceResolver {
|
|
@Override
|
|
public LSInput resolveResource(String type, String namespaceURI,
|
|
String publicId, String systemId, String baseURI) {
|
|
// Throwing an exception stops validation.
|
|
throw new RuntimeException(String.format(
|
|
"resolution attempt: type=%s namespace=%s " +
|
|
"publicId=%s systemId=%s baseURI=%s",
|
|
type, namespaceURI, publicId, systemId, baseURI));
|
|
}
|
|
}
|
|
|