|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.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()
MessageReturns the object to which the message is related.
getRelatedObject in interface Messagepublic String getMessage()
MessageReturns the message.
getMessage in interface Messagepublic void setMessage(String message)
setMessage in interface Messagepublic String getPropertyName()
MessageReturns 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 Messagepublic String getMessageCode()
MessageReturns the messagecode for the message.
getMessageCode in interface Messagepublic Object[] getMessageArgs()
MessageReturns the messssage Arguments which contain information about the occured event. Which arguments are returned can depend on the messagecode.
getMessageArgs in interface Messagepublic String toString()
MessageReturns the string representation.
toString in interface MessagetoString in class Objectpublic MessageType getMessageType()
MessageReturns type of the message.
getMessageType in interface MessageMessageType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||