public interface MessageBuilder
Modifier and Type | Method and Description |
---|---|
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.
|
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 messagesMessageBuilderException
- Errors building messageBooleanFunctionResult 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 mapMessageBuilderException
- Errors building messageString buildMessage(String booleanRule, MessageContainer messageContainer)
booleanRule
- Boolean expressionmessageContainer
- Contains a list of messagesMessageBuilderException
- Errors building messageCopyright © 2004-2014 The Kuali Foundation. All Rights Reserved.