com.nedap.archie.rules.evaluation.EvaluationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tools Show documentation
Show all versions of tools Show documentation
tools that operate on the archie reference models and archetype object model
package com.nedap.archie.rules.evaluation;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Created by pieter.bos on 25/04/16.
*/
public class EvaluationResult {
private List assertionResults = new ArrayList<>();
public List getAssertionResults() {
return assertionResults;
}
public void setAssertionResults(List assertionResults) {
this.assertionResults = assertionResults;
}
protected void addAssertionResult(AssertionResult assertionResult) {
this.assertionResults.add(assertionResult);
}
public List getPathsThatMustExist() {
List result = new ArrayList<>();
for (AssertionResult assertionResult : assertionResults) {
result.addAll(assertionResult.getPathsThatMustExist());
}
return result;
}
public List getPathsThatMustNotExist() {
List result = new ArrayList<>();
for (AssertionResult assertionResult : assertionResults) {
result.addAll(assertionResult.getPathsThatMustNotExist());
}
return result;
}
public Map> getSetPathValues() {
Map> result = new LinkedHashMap<>();
for (AssertionResult assertionResult : assertionResults) {
result.putAll(assertionResult.getSetPathValues());
}
return result;
}
public Map getPathsConstrainedToValueSets() {
Map result = new LinkedHashMap<>();
for (AssertionResult assertionResult : assertionResults) {
result.putAll(assertionResult.getPathsConstrainedToValueSets());
}
return result;
}
}