nl.knowlogy.validation
Interface Message

All Known Implementing Classes:
MessageImpl

public interface Message

A Message is container which contains data of one specific message. It contains data like message, messagecode, messagetype, related object and propertyname.

Author:
Robert Hofstra, Knowlogy

Method Summary
 String getMessage()
           Returns the message.
 Object[] getMessageArgs()
           Returns the messssage Arguments which contain information about the occured event.
 String getMessageCode()
           Returns the messagecode for the message.
 MessageType getMessageType()
           Returns type of the message.
 String getPropertyName()
           Returns the name of the property to which the message is related.
 Object getRelatedObject()
           Returns the object to which the message is related.
 void setMessage(String message)
           
 String toString()
           Returns the string representation.
 

Method Detail

getPropertyName

String getPropertyName()

Returns the name of the property to which the message is related. Null is returned if the message is not related to a specific property.

Returns:
The name of the property which contains a message. null if the message is not related to any property

getMessageCode

String getMessageCode()

Returns the messagecode for the message.

Returns:
the messagecode.

getMessage

String getMessage()

Returns the message.

Returns:
the messssageMessage.

setMessage

void setMessage(String message)

toString

String toString()

Returns the string representation.

Overrides:
toString in class Object
Returns:
the string representation.

getMessageArgs

Object[] getMessageArgs()

Returns the messssage Arguments which contain information about the occured event. Which arguments are returned can depend on the messagecode.

Returns:
Returns the messssage Arguments which contain information about the occured event. Which arguments are returned can depend on the messagecode.

getRelatedObject

Object getRelatedObject()

Returns the object to which the message is related.

Returns:
object to which the message is related.

getMessageType

MessageType getMessageType()

Returns type of the message.

Returns:
type of the message
See Also:
MessageType


Copyright © 2007. All Rights Reserved.