org.kuali.student.common.messagebuilder.impl
Class SuccessFailureMessageBuilder

java.lang.Object
  extended by org.kuali.student.common.messagebuilder.impl.SuccessFailureMessageBuilder
All Implemented Interfaces:
MessageTreeBuilder

public class SuccessFailureMessageBuilder
extends Object
implements MessageTreeBuilder

This class builds the success and failure messages for boolean binary tree nodes.


Field Summary
private  BooleanOperators booleanOperators
          Boolean operators to use in creating the success and failure messages
private  FailureMessageBuilder failureMessageBuilder
           
private  SuccessMessageBuilder successMessageBuilder
           
 
Constructor Summary
SuccessFailureMessageBuilder(BooleanOperators bo)
          Creates a success and failure message builders.
SuccessFailureMessageBuilder(String andOperator, String orOperator)
          Creates a success and failure message builders.
 
Method Summary
private  void buildMessage(BooleanNode node)
          Builds and sets the success and failure message for a boolean node (binary tree node).
 String buildMessage(List<BooleanNode> nodeList)
          Builds and sets the success and failure message for each of the list of boolean nodes (binary tree nodes).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

booleanOperators

private BooleanOperators booleanOperators
Boolean operators to use in creating the success and failure messages


successMessageBuilder

private SuccessMessageBuilder successMessageBuilder

failureMessageBuilder

private FailureMessageBuilder failureMessageBuilder
Constructor Detail

SuccessFailureMessageBuilder

public SuccessFailureMessageBuilder(String andOperator,
                                    String orOperator)
Creates a success and failure message builders.

Parameters:
andOperator - AND logical operator
orOperator - OR logical operator

SuccessFailureMessageBuilder

public SuccessFailureMessageBuilder(BooleanOperators bo)
Creates a success and failure message builders.

Parameters:
bo - Boolean operators
Method Detail

buildMessage

public String buildMessage(List<BooleanNode> nodeList)
Builds and sets the success and failure message for each of the list of boolean nodes (binary tree nodes).

Specified by:
buildMessage in interface MessageTreeBuilder
Parameters:
nodeList - List of boolean nodes
Returns:
A message

buildMessage

private void buildMessage(BooleanNode node)
Builds and sets the success and failure message for a boolean node (binary tree node).

Parameters:
node - Boolean node


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.