org.drools.guvnor.models.commons.backend.rule
Class JavaDRLConstraintValueBuilder
java.lang.Object
org.drools.guvnor.models.commons.backend.rule.DRLConstraintValueBuilder
org.drools.guvnor.models.commons.backend.rule.MvelDRLConstraintValueBuilder
org.drools.guvnor.models.commons.backend.rule.JavaDRLConstraintValueBuilder
public class JavaDRLConstraintValueBuilder
- extends MvelDRLConstraintValueBuilder
Specific implementation for MVEL
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaDRLConstraintValueBuilder
public JavaDRLConstraintValueBuilder()
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 -
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.