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.StringgetMessageKey()Returns the key used to retrieve the localized message describing the problem found in theStateObject.StateObjectgetStateObject()Returns theStateObjectwhere the problem was found.java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
DefaultProblem
public DefaultProblem(StateObject stateObject, java.lang.String messageKey, java.lang.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 java.lang.String[] getMessageArguments()
Returns 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 java.lang.String getMessageKey()
Returns 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()
Returns theStateObjectwhere the problem was found.- Specified by:
 getStateObjectin interfaceProblem- Returns:
 - The 
StateObjectwhere the problem was found 
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -