org.kuali.student.common.messagebuilder.booleanmessage.ast
Class BooleanMessageImpl

java.lang.Object
  extended by org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanMessageImpl
All Implemented Interfaces:
BooleanMessage

public class BooleanMessageImpl
extends Object
implements BooleanMessage


Constructor Summary
BooleanMessageImpl(String messageId, Boolean successful, String message)
          Constructs a new boolean message.
 
Method Summary
 String getMessage()
          Returns either the success or failure message.
 String getMessageId()
          Gets the message id.
 Boolean isSuccesful()
          Returns whether the message is a success or failure.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanMessageImpl

public BooleanMessageImpl(String messageId,
                          Boolean successful,
                          String message)
Constructs a new boolean message.

Parameters:
messageId - Message id
succesful - Success or failure
message - Success or failure message
Method Detail

getMessageId

public String getMessageId()
Gets the message id.

Specified by:
getMessageId in interface BooleanMessage
Returns:
Message id

isSuccesful

public Boolean isSuccesful()
Returns whether the message is a success or failure.

Specified by:
isSuccesful in interface BooleanMessage
Returns:
True if successful; otherwise false

getMessage

public String getMessage()
Returns either the success or failure message.

Specified by:
getMessage in interface BooleanMessage
Parameters:
Success - or failure message
Returns:
Success or failure message

toString

public String toString()
Overrides:
toString in class Object


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