FieldOperator operator = fieldOperatorNodes.get(0).getFieldOperator();
String valueString = fieldOperatorNodes.get(0).getValue();
try {
Date valueDate = TimeUtils.parseDate(valueString, DATE_FORMAT);
criteria = new CustomMetaValueCriteria(keyCriteria, valueDate, operator);
return;
} catch (ParseException e) { // ignore
}
try {
Float valueFloat = Float.parseFloat(valueString);
criteria = new CustomMetaValueCriteria(keyCriteria, valueFloat, operator);
return;
} catch (NumberFormatException e) { // ignore
}
criteria = new CustomMetaValueCriteria(keyCriteria, valueString, operator);
}