Class MvelDRLConstraintValueBuilder
- java.lang.Object
-
- org.drools.workbench.models.datamodel.rule.builder.DRLConstraintValueBuilder
-
- org.drools.workbench.models.datamodel.rule.builder.MvelDRLConstraintValueBuilder
-
- Direct Known Subclasses:
JavaDRLConstraintValueBuilder
public class MvelDRLConstraintValueBuilder extends DRLConstraintValueBuilder
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 MvelDRLConstraintValueBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildLHSFieldValue(StringBuilder buf, int constraintType, String fieldType, String fieldValue)Concatenate a String to the provided buffer suitable for the fieldValue and fieldType.voidbuildRHSFieldValue(StringBuilder buf, String fieldType, String fieldValue)Concatenate a String to the provided buffer suitable for the fieldType and fieldValue.protected booleanisDelimitedString(String content)-
Methods inherited from class org.drools.workbench.models.datamodel.rule.builder.DRLConstraintValueBuilder
getBuilder
-
-
-
-
Method Detail
-
buildLHSFieldValue
public void buildLHSFieldValue(StringBuilder buf, int constraintType, String fieldType, String fieldValue)
Concatenate a String to the provided buffer suitable for the fieldValue and fieldType. Strings and Dates are escaped with double-quotes, 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.- Specified by:
buildLHSFieldValuein classDRLConstraintValueBuilder- Parameters:
buf-constraintType-fieldType-fieldValue-
-
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.- Specified by:
buildRHSFieldValuein classDRLConstraintValueBuilder- Parameters:
buf-fieldType-fieldValue-
-
isDelimitedString
protected boolean isDelimitedString(String content)
-
-