Class JavaDRLConstraintValueBuilder

    • 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 -