|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.student.common.messagebuilder.impl.SuccessMessageBuilder
public class SuccessMessageBuilder
This class creates success messages for boolean binary tree nodes.
Field Summary | |
---|---|
private BooleanOperators |
booleanOperators
Boolean operators to use in creating the success message |
Constructor Summary | |
---|---|
SuccessMessageBuilder(BooleanOperators bo)
Creates a success message builder with boolean operators to use in building the success message. |
Method Summary | |
---|---|
private void |
buildAndNodeSuccessMessage(BooleanNode node)
Builds a success message for an AND node (b-tree node) where left node and right node are true. |
private void |
buildOr1NodeSuccessMessage(BooleanNode node)
Builds a success message for an OR node (b-tree node) where left node is true and right node is false or left node is false and right node is true. |
private void |
buildOr2NodeSuccessMessage(BooleanNode node)
Builds a success message for an OR node (b-tree node) where left node and right node are true. |
String |
buildSuccessMessage(BooleanNode node)
Builds and sets the success message for a single boolean node (b-tree node). |
String |
buildSuccessMessage(List<BooleanNode> nodeList)
Builds and sets the success message for each of the boolean nodes (binary tree) in the nodeList . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private BooleanOperators booleanOperators
Constructor Detail |
---|
public SuccessMessageBuilder(BooleanOperators bo)
bo
- Boolean operators to build success messageMethod Detail |
---|
public String buildSuccessMessage(List<BooleanNode> nodeList) throws MessageBuilderException
nodeList
.
nodeList
- List of boolean nodes
MessageBuilderException
public String buildSuccessMessage(BooleanNode node)
node
(b-tree node).
node
- Boolean nodeprivate void buildAndNodeSuccessMessage(BooleanNode node)
node
- Boolean nodeprivate void buildOr1NodeSuccessMessage(BooleanNode node)
node
- Boolean nodeprivate void buildOr2NodeSuccessMessage(BooleanNode node)
node
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |