Search in sources :

Example 1 with RuleValue

use of io.vertigo.account.authorization.metamodel.rulemodel.RuleValue in project vertigo by KleeGroup.

the class DslExpressionRule method handle.

/**
 * {@inheritDoc}
 */
@Override
protected RuleExpression handle(final List<Object> parsing) {
    final String fieldName = (String) parsing.get(1);
    final ValueOperator operator = (ValueOperator) parsing.get(3);
    final RuleValue value = (RuleValue) ((PegChoice) parsing.get(5)).getValue();
    return new RuleExpression(fieldName, operator, value);
}
Also used : ValueOperator(io.vertigo.account.authorization.metamodel.rulemodel.RuleExpression.ValueOperator) RuleExpression(io.vertigo.account.authorization.metamodel.rulemodel.RuleExpression) RuleValue(io.vertigo.account.authorization.metamodel.rulemodel.RuleValue)

Aggregations

RuleExpression (io.vertigo.account.authorization.metamodel.rulemodel.RuleExpression)1 ValueOperator (io.vertigo.account.authorization.metamodel.rulemodel.RuleExpression.ValueOperator)1 RuleValue (io.vertigo.account.authorization.metamodel.rulemodel.RuleValue)1