* @param descr
*/
private void flatten(LiteralRestrictionDescr descr,
VerifierComponent parent, int orderNumber) {
LiteralRestriction restriction = new LiteralRestriction();
restriction.setRuleId(currentRule.getId());
restriction.setRuleName(currentRule.getRuleName());
restriction.setRuleId(currentRule.getId());
restriction.setPatternId(currentPattern.getId());
restriction.setPatternIsNot(currentPattern.isPatternNot());
restriction.setConstraintId(currentConstraint.getId());
restriction.setFieldId(currentConstraint.getFieldId());
restriction.setOperator(Operator.determineOperator(
descr.getEvaluator(), descr.isNegated()));
restriction.setValue(descr.getText());
restriction.setOrderNumber(orderNumber);
restriction.setParent(parent);
// Set field value, if it is unset.
currentField.setFieldType(restriction.getValueType());
data.add(restriction);
solvers.addRestriction(restriction);
}