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