Cisco Systems, Inc.

com.pcube.apps.engage
Class ValidationMessage

java.lang.Object
  extended by com.pcube.apps.engage.ValidationMessage

public class ValidationMessage
extends java.lang.Object

ValidationMessage holds a validation result's message and severity. The severity can be error, warning or information;


Field Summary
static int TYPE_ERROR
          Comment for TYPE_ERROR
static int TYPE_INFORMATION
          Comment for TYPE_INFORMATION
static int TYPE_WARNING
          Comment for TYPE_WARNING
 
Constructor Summary
ValidationMessage(java.lang.String msg, int type)
          ValidationMessage constructor.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Checks if this ValidationMessage equals another object.
 java.lang.String getMessage()
          Gets the message String.
 int getType()
          Gets the message's severity.
 int hashCode()
          Gets this ValidationMessage hashcode.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ERROR

public static final int TYPE_ERROR
Comment for TYPE_ERROR

See Also:
Constant Field Values

TYPE_WARNING

public static final int TYPE_WARNING
Comment for TYPE_WARNING

See Also:
Constant Field Values

TYPE_INFORMATION

public static final int TYPE_INFORMATION
Comment for TYPE_INFORMATION

See Also:
Constant Field Values
Constructor Detail

ValidationMessage

public ValidationMessage(java.lang.String msg,
                         int type)
ValidationMessage constructor.

Parameters:
msg - the message
type - the message's type
See Also:
TYPE_ERROR, TYPE_WARNING, TYPE_INFORMATION
Method Detail

getMessage

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

Returns:
the message

getType

public int getType()
Gets the message's severity.

Returns:
the message's severity
See Also:
TYPE_ERROR, TYPE_WARNING, TYPE_INFORMATION

equals

public boolean equals(java.lang.Object obj)
Checks if this ValidationMessage equals another object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the object to compare to
Returns:
true if this ValidationMessage equals the other object, false otherwise

hashCode

public int hashCode()
Gets this ValidationMessage hashcode.

Overrides:
hashCode in class java.lang.Object
Returns:
this ValidationMessage hashcode

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Cisco Systems, Inc.

Copyright © 2013 Cisco Systems, Inc. Confidential.