use of org.dmg.pmml.SimpleSetPredicate in project drools by kiegroup.
the class PMMLModelTestUtils method getRandomSimpleSetPredicate.
public static SimpleSetPredicate getRandomSimpleSetPredicate(DataField dataField) {
SimpleSetPredicate toReturn = getRandomSimpleSetPredicate();
toReturn.setField(dataField.getName());
toReturn.setBooleanOperator(getRandomSimpleSetPredicateOperator());
Array.Type arrayType = getArrayType(dataField.getDataType());
List<String> values = getStringObjects(arrayType, 3);
Array array = getArray(arrayType, values);
toReturn.setArray(array);
return toReturn;
}
Aggregations