All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.nedap.archie.rules.evaluation.EvaluationResult Maven / Gradle / Ivy

Go to download

tools that operate on the archie reference models and archetype object model

The newest version!
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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy