mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
#55 More robust reporting in case of Schematron Error
This commit is contained in:
parent
cd061b22c0
commit
8fb1098925
9 changed files with 365 additions and 23 deletions
|
|
@ -139,8 +139,13 @@ public class DefaultResult implements Result {
|
|||
: Collections.emptyList();
|
||||
}
|
||||
|
||||
private boolean isSchematronEvaluated() {
|
||||
return getSchematronResult() != null
|
||||
&& getSchematronResult().stream().noneMatch(e -> e.getActivePatternAndFiredRuleAndFailedAssert().isEmpty());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSchematronValid() {
|
||||
return getSchematronResult() != null && getFailedAsserts().isEmpty();
|
||||
return isSchematronEvaluated() && getFailedAsserts().isEmpty();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue