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

com.nedap.archie.rules.ForAllStatement Maven / Gradle / Ivy

There is a newer version: 3.12.0
Show newest version
package com.nedap.archie.rules;

/**
 * Created by pieter.bos on 10/05/16.
 */
public class ForAllStatement extends Operator {

    private String variableName;

    public ForAllStatement() {

    }

    public ForAllStatement(String variableName, Expression path, Expression assertion) {
        setType(ExpressionType.BOOLEAN);
        setOperator(OperatorKind.for_all);
        addOperand(path);
        addOperand(assertion);

        this.variableName = variableName;
    }

    public String getVariableName() {
        return variableName;
    }

    public void setVariableName(String variableName) {
        this.variableName = variableName;
    }

    public Expression getPathExpression() {
        return getFirstOperand();
    }

    public void setPathExpression(Expression pathExpression) {
        super.setFirstOperand(pathExpression);
    }

    public Expression getAssertion() {
        return getSecondOperand();
    }

    public void setAssertion(Expression assertion) {
        super.setSecondOperand(assertion);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy