Class DefaultProblem
java.lang.Object
org.eclipse.persistence.jpa.jpql.tools.model.DefaultProblem
- All Implemented Interfaces:
Problem
The default implementation of
Problem
.- Since:
- 2.4
- Version:
- 2.4
-
Constructor Summary
ConstructorDescriptionDefaultProblem
(StateObject stateObject, String messageKey, String[] arguments) Creates a newDefaultProblem
. -
Method Summary
Modifier and TypeMethodDescriptionString[]
Returns the arguments associate with the problem's message.Returns the key used to retrieve the localized message describing the problem found in theStateObject
.Returns theStateObject
where the problem was found.toString()
-
Constructor Details
-
DefaultProblem
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 Details
-
getMessageArguments
Description copied from interface:Problem
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
Description copied from interface:Problem
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
Description copied from interface:Problem
Returns theStateObject
where the problem was found.- Specified by:
getStateObject
in interfaceProblem
- Returns:
- The
StateObject
where the problem was found
-
toString
-