Constructor and Description |
---|
DefaultProblem(StateObject stateObject,
java.lang.String messageKey,
java.lang.String[] arguments)
Creates a new
DefaultProblem . |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getMessageArguments()
Returns the arguments associate with the problem's message.
|
java.lang.String |
getMessageKey()
Returns the key used to retrieve the localized message describing the problem found in the
StateObject . |
StateObject |
getStateObject()
Returns the
StateObject where the problem was found. |
java.lang.String |
toString() |
public DefaultProblem(StateObject stateObject, java.lang.String messageKey, java.lang.String[] arguments)
DefaultProblem
.stateObject
- The StateObject
where the problem was foundmessageKey
- The key used to retrieve the localized message describing the problem found
with the current state of this StateObject
arguments
- A list of arguments that can be used to complete the message or an empty list
if no additional information is necessarypublic java.lang.String[] getMessageArguments()
getMessageArguments
in interface Problem
null
list of arguments that can be used to format the localized
messagepublic java.lang.String getMessageKey()
StateObject
.getMessageKey
in interface Problem
public StateObject getStateObject()
StateObject
where the problem was found.getStateObject
in interface Problem
StateObject
where the problem was foundpublic java.lang.String toString()
toString
in class java.lang.Object