mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
Refactor: don't reuse JAXB objects for internal configuration; create a Configuration interface.
This commit is contained in:
parent
c8b3c1977c
commit
7a86f049ac
30 changed files with 871 additions and 517 deletions
|
|
@ -0,0 +1,45 @@
|
|||
package de.kosit.validationtool.impl;
|
||||
|
||||
import java.net.URI;
|
||||
|
||||
import javax.xml.transform.URIResolver;
|
||||
|
||||
import org.apache.commons.lang3.NotImplementedException;
|
||||
|
||||
/**
|
||||
* Defines how artefacts are resolved internally.
|
||||
*
|
||||
* @author Andreas Penski
|
||||
*/
|
||||
public enum ResolvingMode {
|
||||
|
||||
/**
|
||||
* Resolving using only the configured content repository. No furthing resolving allowed. This
|
||||
*/
|
||||
STRICT_RELATIVE {
|
||||
|
||||
@Override
|
||||
public URI resolve(final URI source, final URI repository) {
|
||||
return RelativeUriResolver.resolve(source, repository);
|
||||
}
|
||||
|
||||
@Override
|
||||
public URIResolver createResolver(final URI repository) {
|
||||
return new RelativeUriResolver(repository);
|
||||
}
|
||||
},
|
||||
|
||||
STRICT_LOCAL,
|
||||
|
||||
JDK_SUPPORTED,
|
||||
|
||||
CUSTOM;
|
||||
|
||||
public URI resolve(final URI source, final URI repository) {
|
||||
throw new NotImplementedException("Not yet implemented");
|
||||
}
|
||||
|
||||
public URIResolver createResolver(final URI repository) {
|
||||
throw new NotImplementedException("Not yet implemented");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue