com.nedap.archie.rules.ForAllStatement Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aom Show documentation
Show all versions of aom Show documentation
An OpenEHR archetype object model implementation, plus parser
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