mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-26 01:05:38 +00:00
#20 remove deprecatation hint
We decided to keep the "Document"-versions of the API
This commit is contained in:
parent
34d79d5e2c
commit
87a05cb456
1 changed files with 9 additions and 10 deletions
|
|
@ -27,6 +27,7 @@ import org.w3c.dom.Document;
|
||||||
import net.sf.saxon.dom.NodeOverNodeInfo;
|
import net.sf.saxon.dom.NodeOverNodeInfo;
|
||||||
import net.sf.saxon.s9api.XdmNode;
|
import net.sf.saxon.s9api.XdmNode;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zentrale Schnittstellendefinition für das Prüf-Tool.
|
* Zentrale Schnittstellendefinition für das Prüf-Tool.
|
||||||
*
|
*
|
||||||
|
|
@ -35,13 +36,12 @@ import net.sf.saxon.s9api.XdmNode;
|
||||||
public interface Check {
|
public interface Check {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Führt die konfigurierte Prüfung für die übergebene Resource aus.
|
* Führt die konfigurierte Prüfung für die übergebene Resource aus. Das Ergebnis-{@link Document} ist readonly. Soll es
|
||||||
|
* weiterverarbeitet werden, so muss es kopiert werden.
|
||||||
*
|
*
|
||||||
* @param input die Resource / XML-Datei, die geprüft werden soll.
|
* @param input die Resource / XML-Datei, die geprüft werden soll.
|
||||||
* @return ein Ergebnis-{@link Document}
|
* @return ein Ergebnis-{@link Document} (readonly)
|
||||||
* @deprecated use {@link #checkInput(Input)}
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
default Document check(Input input) {
|
default Document check(Input input) {
|
||||||
final XdmNode node = checkInput(input);
|
final XdmNode node = checkInput(input);
|
||||||
// readonly view of the document!!!
|
// readonly view of the document!!!
|
||||||
|
|
@ -57,13 +57,12 @@ public interface Check {
|
||||||
XdmNode checkInput(Input input);
|
XdmNode checkInput(Input input);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Führt eine Prüfung im Batch-Mode durch. Die Default-Implementierung führt die Prüfung sequentiell aus.
|
* Führt eine Prüfung im Batch-Mode durch. Die Default-Implementierung führt die Prüfung sequentiell aus. Die Ergebnis
|
||||||
|
* -{@link Document Dokumente} sind readonly. Sollen sie weiterverarbeitet werden, so müssen Kopien erstellt werden.
|
||||||
*
|
*
|
||||||
* @param input die Eingabe
|
* @param input die Eingabe
|
||||||
* @return Liste mit Ergebnis-Dokumenten
|
* @return Liste mit Ergebnis-Dokumenten (readonly)
|
||||||
* @deprecated use {@link #checkInput(List)}
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
default List<Document> check(List<Input> input) {
|
default List<Document> check(List<Input> input) {
|
||||||
return input.stream().map(this::check).collect(Collectors.toList());
|
return input.stream().map(this::check).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue