Package org.kie.pmml.models.drools.utils
Class KiePMMLASTFactoryUtils
- java.lang.Object
-
- org.kie.pmml.models.drools.utils.KiePMMLASTFactoryUtils
-
public class KiePMMLASTFactoryUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<KiePMMLFieldOperatorValue>getConstraintEntriesFromAndOrCompoundPredicate(org.dmg.pmml.CompoundPredicate compoundPredicate, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)Method to be invoked when compoundPredicate.getBooleanOperator() isANDorOR.static List<KiePMMLFieldOperatorValue>getConstraintEntriesFromXOrCompoundPredicate(org.dmg.pmml.CompoundPredicate compoundPredicate, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)Method to be invoked when compoundPredicate.getBooleanOperator() isXOR.static KiePMMLFieldOperatorValuegetConstraintEntryFromSimplePredicates(String fieldName, org.kie.pmml.api.enums.BOOLEAN_OPERATOR containerOperator, List<org.dmg.pmml.SimplePredicate> simplePredicates, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)This method should be invoked with aList<SimplePredicate>where eachSimplePredicateis referring to the same fieldstatic ObjectgetCorrectlyFormattedObject(org.dmg.pmml.SimplePredicate simplePredicate, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)static List<KiePMMLFieldOperatorValue>getXORConstraintEntryFromSimplePredicates(List<org.dmg.pmml.Predicate> predicates, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)
-
-
-
Method Detail
-
getConstraintEntriesFromAndOrCompoundPredicate
public static List<KiePMMLFieldOperatorValue> getConstraintEntriesFromAndOrCompoundPredicate(org.dmg.pmml.CompoundPredicate compoundPredicate, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)
Method to be invoked when compoundPredicate.getBooleanOperator() isANDorOR. Throws exception otherwise- Parameters:
compoundPredicate-fieldTypeMap-- Returns:
-
getConstraintEntriesFromXOrCompoundPredicate
public static List<KiePMMLFieldOperatorValue> getConstraintEntriesFromXOrCompoundPredicate(org.dmg.pmml.CompoundPredicate compoundPredicate, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)
Method to be invoked when compoundPredicate.getBooleanOperator() isXOR. Throws exception otherwise- Parameters:
compoundPredicate-fieldTypeMap-- Returns:
-
getConstraintEntryFromSimplePredicates
public static KiePMMLFieldOperatorValue getConstraintEntryFromSimplePredicates(String fieldName, org.kie.pmml.api.enums.BOOLEAN_OPERATOR containerOperator, List<org.dmg.pmml.SimplePredicate> simplePredicates, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)
This method should be invoked with aList<SimplePredicate>where eachSimplePredicateis referring to the same field- Parameters:
fieldName-containerOperator-simplePredicates-fieldTypeMap-- Returns:
-
getXORConstraintEntryFromSimplePredicates
public static List<KiePMMLFieldOperatorValue> getXORConstraintEntryFromSimplePredicates(List<org.dmg.pmml.Predicate> predicates, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)
-
getCorrectlyFormattedObject
public static Object getCorrectlyFormattedObject(org.dmg.pmml.SimplePredicate simplePredicate, Map<String,KiePMMLOriginalTypeGeneratedType> fieldTypeMap)
-
-