Class JavaDRLConstraintValueBuilder
- java.lang.Object
-
- org.drools.workbench.models.datamodel.rule.builder.DRLConstraintValueBuilder
-
- org.drools.workbench.models.datamodel.rule.builder.MvelDRLConstraintValueBuilder
-
- org.drools.workbench.models.datamodel.rule.builder.JavaDRLConstraintValueBuilder
-
public class JavaDRLConstraintValueBuilder extends MvelDRLConstraintValueBuilder
Specific implementation for MVEL
-
-
Field Summary
-
Fields inherited from class org.drools.workbench.models.datamodel.rule.builder.DRLConstraintValueBuilder
DEFAULT_DIALECT
-
-
Constructor Summary
Constructors Constructor Description JavaDRLConstraintValueBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildRHSFieldValue(StringBuilder buf, String fieldType, String fieldValue)Concatenate a String to the provided buffer suitable for the fieldType and fieldValue.-
Methods inherited from class org.drools.workbench.models.datamodel.rule.builder.MvelDRLConstraintValueBuilder
buildLHSFieldValue, isDelimitedString
-
Methods inherited from class org.drools.workbench.models.datamodel.rule.builder.DRLConstraintValueBuilder
getBuilder
-
-
-
-
Method Detail
-
buildRHSFieldValue
public void buildRHSFieldValue(StringBuilder buf, String fieldType, String fieldValue)
Concatenate a String to the provided buffer suitable for the fieldType and fieldValue. Strings are escaped with double-quotes, Dates are wrapped with a call to a pre-constructed SimpleDateFormatter, whilst Numerics, Booleans, (Java 1.5+) enums and all other fieldTypes are not escaped at all. Guvnor-type enums are really a pick list of Strings and in these cases the underlying fieldType is a String.- Overrides:
buildRHSFieldValuein classMvelDRLConstraintValueBuilder- Parameters:
buf-fieldType-fieldValue-
-
-