|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MessageBuilder
| Method Summary | |
|---|---|
BooleanFunctionResult |
build(String booleanRule,
MessageContainer messageContainer)
Builds and evaluates a boolean expression and returns the message and result of the expression. |
BooleanFunctionResult |
build(String booleanRule,
MessageContainer messageContainer,
Map<String,Object> messageContextMap)
Builds and evaluates a boolean expression and returns the message and result of the expression. |
String |
buildMessage(String booleanRule,
MessageContainer messageContainer)
Builds a message from a list of message using a boolean expression. |
| Method Detail |
|---|
BooleanFunctionResult build(String booleanRule,
MessageContainer messageContainer)
Builds and evaluates a boolean expression and returns the message and result of the expression.
Note: Order of boolean operation: ANDs before ORs and operations inside parentheses before anything else.
Example 1: 'A AND B OR C AND D' internally evaluates to '(A AND B) OR (C AND D)'booleanExpression = "A*B+C*D"
Example 2: '(M1 AND M2) OR M3'
booleanExpression = "(M1*M2)+M3"
booleanRule - Boolean expressionmessageContainer - Contains a list of messages
MessageBuilderException - Errors building message
BooleanFunctionResult build(String booleanRule,
MessageContainer messageContainer,
Map<String,Object> messageContextMap)
Builds and evaluates a boolean expression and returns the message and result of the expression.
Note: Order of boolean operation: ANDs before ORs and operations inside parentheses before anything else.
if messageContainer contains any velocity templates
with keys/tokens then messageContextMap must be set.
booleanExpression = "A*B+C*D"
Example 2: '(M1 AND M2) OR M3'
booleanExpression = "(M1*M2)+M3"
booleanRule - Boolean expressionmessageContainer - Contains a list of messagesmessageContextMap - Message context template map
MessageBuilderException - Errors building message
String buildMessage(String booleanRule,
MessageContainer messageContainer)
booleanRule - Boolean expressionmessageContainer - Contains a list of messages
MessageBuilderException - Errors building message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||