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
ConstructorsConstructorDescriptionDefaultProblem(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 theStateObjectwhere the problem was found.toString()
-
Constructor Details
-
DefaultProblem
Creates a newDefaultProblem.- Parameters:
stateObject- TheStateObjectwhere the problem was foundmessageKey- The key used to retrieve the localized message describing the problem found with the current state of thisStateObjectarguments- 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:ProblemReturns the arguments associate with the problem's message.- Specified by:
getMessageArgumentsin interfaceProblem- Returns:
- A non-
nulllist of arguments that can be used to format the localized message
-
getMessageKey
Description copied from interface:ProblemReturns the key used to retrieve the localized message describing the problem found in theStateObject.- Specified by:
getMessageKeyin interfaceProblem- Returns:
- The key used to retrieve the localized message
-
getStateObject
Description copied from interface:ProblemReturns theStateObjectwhere the problem was found.- Specified by:
getStateObjectin interfaceProblem- Returns:
- The
StateObjectwhere the problem was found
-
toString
-