mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
Fixed typo
This commit is contained in:
parent
3d783857ab
commit
da0478f838
1 changed files with 5 additions and 10 deletions
|
|
@ -21,11 +21,9 @@ import java.util.Collections;
|
|||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import de.kosit.validationtool.api.Configuration;
|
||||
import de.kosit.validationtool.impl.model.Result;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import net.sf.saxon.s9api.SaxonApiException;
|
||||
import net.sf.saxon.s9api.XPathSelector;
|
||||
import net.sf.saxon.s9api.XdmNode;
|
||||
|
|
@ -67,17 +65,14 @@ public class ScenarioRepository {
|
|||
|
||||
private String summarizeScenarios() {
|
||||
final StringBuilder b = new StringBuilder();
|
||||
getScenarios().forEach(s -> {
|
||||
b.append(s.getName());
|
||||
b.append("\n");
|
||||
});
|
||||
getScenarios().forEach(s -> b.append(s.getName()).append('\n'));
|
||||
return b.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* Ermittelt für das gegebene Dokument das passende Szenario.
|
||||
* Determine the matching Scenario for the provided input document
|
||||
*
|
||||
* @param document das Eingabedokument
|
||||
* @param document input document
|
||||
* @return ein Ergebnis-Objekt zur weiteren Verarbeitung
|
||||
*/
|
||||
public Result<Scenario, String> selectScenario(final XdmNode document) {
|
||||
|
|
@ -89,7 +84,7 @@ public class ScenarioRepository {
|
|||
result = new Result<>(getFallbackScenario(),
|
||||
Collections.singleton("None of the loaded scenarios matches the specified document"));
|
||||
} else {
|
||||
result = new Result<>(getFallbackScenario(), Collections.singleton("More than on scenario matches the specified document"));
|
||||
result = new Result<>(getFallbackScenario(), Collections.singleton("More than one scenario matches the specified document"));
|
||||
}
|
||||
return result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue