Class DefaultProblem
- java.lang.Object
-
- org.eclipse.persistence.jpa.jpql.tools.model.DefaultProblem
-
-
Constructor Summary
Constructors Constructor Description DefaultProblem(StateObject stateObject, String messageKey, String[] arguments)Creates a newDefaultProblem.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getMessageArguments()Returns the arguments associate with the problem's message.StringgetMessageKey()Returns the key used to retrieve the localized message describing the problem found in theStateObject.StateObjectgetStateObject()Returns theStateObjectwhere the problem was found.StringtoString()
-
-
-
Constructor Detail
-
DefaultProblem
public DefaultProblem(StateObject stateObject, String messageKey, String[] arguments)
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 Detail
-
getMessageArguments
public String[] 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
public String 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
public StateObject getStateObject()
Description copied from interface:ProblemReturns theStateObjectwhere the problem was found.- Specified by:
getStateObjectin interfaceProblem- Returns:
- The
StateObjectwhere the problem was found
-
-