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);
}
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);
}
Aggregations