Drools Workbench - Common Model 6.0.0.CR4-Pre1

org.drools.workbench.models.commons.backend.rule
Class JavaDRLConstraintValueBuilder

java.lang.Object
  extended by org.drools.workbench.models.commons.backend.rule.DRLConstraintValueBuilder
      extended by org.drools.workbench.models.commons.backend.rule.MvelDRLConstraintValueBuilder
          extended by org.drools.workbench.models.commons.backend.rule.JavaDRLConstraintValueBuilder

public class JavaDRLConstraintValueBuilder
extends MvelDRLConstraintValueBuilder

Specific implementation for MVEL


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.commons.backend.rule.MvelDRLConstraintValueBuilder
buildLHSFieldValue
 
Methods inherited from class org.drools.workbench.models.commons.backend.rule.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 - Common Model 6.0.0.CR4-Pre1

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