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

com.nedap.archie.rules.evaluation.evaluators.VariableReferenceEvaluator 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.evaluators;

import com.google.common.collect.Lists;
import com.nedap.archie.rules.VariableReference;
import com.nedap.archie.rules.evaluation.Evaluator;
import com.nedap.archie.rules.evaluation.RuleEvaluation;
import com.nedap.archie.rules.evaluation.ValueList;

import java.util.List;

/**
 * Created by pieter.bos on 04/04/16.
 */
public class VariableReferenceEvaluator implements Evaluator {
    @Override
    public ValueList evaluate(RuleEvaluation evaluation, VariableReference statement) {
        return evaluation.getVariableMap().get(statement.getDeclaration().getName());
    }

    @Override
    public List> getSupportedClasses() {
        return Lists.newArrayList(VariableReference.class);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy