org.rimudb.editor.util
Class ValidationMessage

java.lang.Object
  extended by org.rimudb.editor.util.ValidationMessage
All Implemented Interfaces:
java.io.Serializable

public class ValidationMessage
extends java.lang.Object
implements java.io.Serializable

This class represents a validation message.

See Also:
Serialized Form

Field Summary
static int ERROR
           
static int WARNING
           
 
Constructor Summary
ValidationMessage()
          Construct a ValidationMessage
ValidationMessage(java.lang.String message)
          Construct a ValidationMessage
ValidationMessage(java.lang.String message, int level)
          Construct a ValidationMessage
 
Method Summary
 int getLevel()
           
 java.lang.String getMessage()
          Gets the message
 boolean isError()
           
 boolean isWarning()
           
 void setLevel(int level)
           
 void setMessage(java.lang.String message)
          Sets the message
 java.lang.String toString()
          Return a String representation of the ValidationMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

WARNING

public static final int WARNING
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values
Constructor Detail

ValidationMessage

public ValidationMessage()
Construct a ValidationMessage


ValidationMessage

public ValidationMessage(java.lang.String message)
Construct a ValidationMessage


ValidationMessage

public ValidationMessage(java.lang.String message,
                         int level)
Construct a ValidationMessage

Method Detail

toString

public java.lang.String toString()
Return a String representation of the ValidationMessage

Overrides:
toString in class java.lang.Object

getMessage

public java.lang.String getMessage()
Gets the message

Returns:
Returns a String

setMessage

public void setMessage(java.lang.String message)
Sets the message

Parameters:
message - The message to set

getLevel

public int getLevel()
Returns:
int

setLevel

public void setLevel(int level)
Parameters:
level -

isError

public boolean isError()
Returns:
boolean

isWarning

public boolean isWarning()
Returns:
boolean


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.