Class DefaultProblem
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.model.DefaultProblem
-
-
Constructor Summary
Constructors Constructor Description DefaultProblem(StateObject stateObject, java.lang.String messageKey, java.lang.String[] arguments)
Creates a newDefaultProblem
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theStateObject
.StateObject
getStateObject()
Returns theStateObject
where the problem was found.java.lang.String
toString()
-
-
-
Constructor Detail
-
DefaultProblem
public DefaultProblem(StateObject stateObject, java.lang.String messageKey, java.lang.String[] arguments)
Creates a newDefaultProblem
.- Parameters:
stateObject
- TheStateObject
where the problem was foundmessageKey
- The key used to retrieve the localized message describing the problem found with the current state of thisStateObject
arguments
- A list of arguments that can be used to complete the message or an empty list if no additional information is necessary
-
-
Method Detail
-
getMessageArguments
public java.lang.String[] getMessageArguments()
Returns the arguments associate with the problem's message.- Specified by:
getMessageArguments
in interfaceProblem
- Returns:
- A non-
null
list of arguments that can be used to format the localized message
-
getMessageKey
public java.lang.String getMessageKey()
Returns the key used to retrieve the localized message describing the problem found in theStateObject
.- Specified by:
getMessageKey
in interfaceProblem
- Returns:
- The key used to retrieve the localized message
-
getStateObject
public StateObject getStateObject()
Returns theStateObject
where the problem was found.- Specified by:
getStateObject
in interfaceProblem
- Returns:
- The
StateObject
where the problem was found
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-