createRestriction(currentOrderNumber, value, operator);
}
}
private void createRestriction(int currentOrderNumber, String value, Operator operator) {
LiteralRestriction restriction = LiteralRestriction.createRestriction(pattern, value);
restriction.setFieldPath(field.getPath());
restriction.setPatternIsNot(pattern.isPatternNot());
restriction.setParentPath(pattern.getPath());
restriction.setParentType(pattern.getVerifierComponentType());
restriction.setOrderNumber(currentOrderNumber);
restriction.setOperator(operator);
field.setFieldType(restriction.getValueType());
data.add(restriction);
solvers.addPatternComponent(restriction);
}