Drools Workbench - Data Model API 6.2.0.Beta2

org.drools.workbench.models.datamodel.rule.builder
Class JavaDRLConstraintValueBuilder

java.lang.Object
  extended by org.drools.workbench.models.datamodel.rule.builder.DRLConstraintValueBuilder
      extended by org.drools.workbench.models.datamodel.rule.builder.MvelDRLConstraintValueBuilder
          extended by 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
JavaDRLConstraintValueBuilder()
           
 
Method Summary
 void buildRHSFieldValue(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaDRLConstraintValueBuilder

public JavaDRLConstraintValueBuilder()
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:
buildRHSFieldValue in class MvelDRLConstraintValueBuilder
Parameters:
buf -
fieldType -
fieldValue -

Drools Workbench - Data Model API 6.2.0.Beta2

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.