Search in sources :

Example 1 with FieldVariable

use of org.drools.verifier.components.FieldVariable in project drools by kiegroup.

the class ExprConstraintDescrVisitor method visit.

private void visit(BindingDescr descr) {
    Field field = new Field(descr);
    field.setName(descr.getExpression());
    field.setObjectTypeName(pattern.getName());
    field.setObjectTypePath(pattern.getObjectTypePath());
    data.add(field);
    FieldVariable fieldVariable = new FieldVariable(pattern);
    fieldVariable.setParentPath(field.getPath());
    fieldVariable.setName(descr.getVariable());
    fieldVariable.setOrderNumber(orderNumber.next());
    data.add(fieldVariable);
}
Also used : Field(org.drools.verifier.components.Field) FieldVariable(org.drools.verifier.components.FieldVariable)

Example 2 with FieldVariable

use of org.drools.verifier.components.FieldVariable in project drools by kiegroup.

the class PatternDescrVisitor method visitBindingDescr.

/**
 * End
 *
 * @param descr
 */
private void visitBindingDescr(BindingDescr descr) {
    Field field = new Field(descr);
    field.setName(descr.getExpression());
    field.setObjectTypeName(objectType.getName());
    field.setObjectTypePath(objectType.getPath());
    data.add(field);
    FieldVariable fieldVariable = new FieldVariable(pattern);
    fieldVariable.setParentPath(field.getPath());
    fieldVariable.setName(descr.getVariable());
    fieldVariable.setOrderNumber(orderNumber.next());
    data.add(fieldVariable);
}
Also used : Field(org.drools.verifier.components.Field) FieldVariable(org.drools.verifier.components.FieldVariable)

Aggregations

Field (org.drools.verifier.components.Field)2 FieldVariable (org.drools.verifier.components.FieldVariable)2