public class DataDTOToMVELTranslator extends Object
| Constructor and Description |
|---|
DataDTOToMVELTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildCollectionExpression(StringBuffer sb,
String entityKey,
String field,
Object[] value,
SupportedFieldType type,
SupportedFieldType secondaryType,
String operator,
boolean includeParenthesis,
boolean isFieldComparison,
boolean ignoreCase,
boolean isNegation,
boolean ignoreQuotes) |
protected void |
buildExpression(ExpressionDTO expressionDTO,
StringBuffer sb,
String entityKey,
BLCOperator operator,
RuleBuilderFieldService fieldService) |
protected void |
buildExpression(StringBuffer sb,
String entityKey,
String field,
Object[] value,
SupportedFieldType type,
SupportedFieldType secondaryType,
String operator,
boolean includeParenthesis,
boolean isFieldComparison,
boolean ignoreCase,
boolean isNegation,
boolean ignoreQuotes) |
protected String |
buildFieldName(String entityKey,
String fieldName) |
protected void |
buildMVEL(DataDTO dataDTO,
StringBuffer sb,
String entityKey,
String groupOperator,
RuleBuilderFieldService fieldService) |
String |
createMVEL(String entityKey,
DataDTO dataDTO,
RuleBuilderFieldService fieldService) |
protected String |
escapeInternalQuotes(String processedValue) |
protected Object[] |
extractBasicValues(Object value) |
protected String |
formatField(String entityKey,
SupportedFieldType type,
String field,
boolean ignoreCase,
boolean isNegation) |
protected String |
formatValue(String fieldName,
String entityKey,
SupportedFieldType type,
SupportedFieldType secondaryType,
Object[] value,
boolean isFieldComparison,
boolean ignoreCase,
boolean ignoreQuotes) |
boolean |
isProjection(Object value) |
public String createMVEL(String entityKey, DataDTO dataDTO, RuleBuilderFieldService fieldService) throws MVELTranslationException
MVELTranslationExceptionprotected void buildMVEL(DataDTO dataDTO, StringBuffer sb, String entityKey, String groupOperator, RuleBuilderFieldService fieldService) throws MVELTranslationException
MVELTranslationExceptionprotected void buildExpression(ExpressionDTO expressionDTO, StringBuffer sb, String entityKey, BLCOperator operator, RuleBuilderFieldService fieldService) throws MVELTranslationException
MVELTranslationExceptionpublic boolean isProjection(Object value)
protected void buildCollectionExpression(StringBuffer sb, String entityKey, String field, Object[] value, SupportedFieldType type, SupportedFieldType secondaryType, String operator, boolean includeParenthesis, boolean isFieldComparison, boolean ignoreCase, boolean isNegation, boolean ignoreQuotes) throws MVELTranslationException
MVELTranslationExceptionprotected void buildExpression(StringBuffer sb, String entityKey, String field, Object[] value, SupportedFieldType type, SupportedFieldType secondaryType, String operator, boolean includeParenthesis, boolean isFieldComparison, boolean ignoreCase, boolean isNegation, boolean ignoreQuotes) throws MVELTranslationException
MVELTranslationExceptionprotected String formatField(String entityKey, SupportedFieldType type, String field, boolean ignoreCase, boolean isNegation)
protected String formatValue(String fieldName, String entityKey, SupportedFieldType type, SupportedFieldType secondaryType, Object[] value, boolean isFieldComparison, boolean ignoreCase, boolean ignoreQuotes) throws MVELTranslationException
MVELTranslationExceptionCopyright © 2017. All rights reserved.