|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nl.knowlogy.validation.MessageImpl
public class MessageImpl
Constructor Summary | |
---|---|
MessageImpl(MessageType messageType,
Object objectPertainingMessage,
String propertyName,
String messageCode)
|
|
MessageImpl(MessageType messageType,
Object objectPertainingMessage,
String propertyName,
String messageCode,
Object[] errorArgs,
String message)
|
|
MessageImpl(MessageType messageType,
Object objectPertainingMessage,
String propertyName,
String messageCode,
String message)
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MessageImpl(MessageType messageType, Object objectPertainingMessage, String propertyName, String messageCode)
public MessageImpl(MessageType messageType, Object objectPertainingMessage, String propertyName, String messageCode, String message)
public MessageImpl(MessageType messageType, Object objectPertainingMessage, String propertyName, String messageCode, Object[] errorArgs, String message)
Method Detail |
---|
public Object getRelatedObject()
Message
Returns the object to which the message is related.
getRelatedObject
in interface Message
public String getMessage()
Message
Returns the message.
getMessage
in interface Message
public void setMessage(String message)
setMessage
in interface Message
public String getPropertyName()
Message
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.
getPropertyName
in interface Message
public String getMessageCode()
Message
Returns the messagecode for the message.
getMessageCode
in interface Message
public Object[] getMessageArgs()
Message
Returns the messssage Arguments which contain information about the occured event. Which arguments are returned can depend on the messagecode.
getMessageArgs
in interface Message
public String toString()
Message
Returns the string representation.
toString
in interface Message
toString
in class Object
public MessageType getMessageType()
Message
Returns type of the message.
getMessageType
in interface Message
MessageType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |