org.kuali.student.common.messagebuilder.booleanmessage.ast
Class BooleanMessageImpl
java.lang.Object
org.kuali.student.common.messagebuilder.booleanmessage.ast.BooleanMessageImpl
- All Implemented Interfaces:
- BooleanMessage
public class BooleanMessageImpl
- extends Object
- implements BooleanMessage
messageId
private String messageId
successful
private Boolean successful
message
private String message
BooleanMessageImpl
public BooleanMessageImpl(String messageId,
Boolean successful,
String message)
- Constructs a new boolean message.
- Parameters:
messageId
- Message idsuccesful
- Success or failuremessage
- Success or failure message
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 © 2007-2011 The Kuali Foundation. All Rights Reserved.