EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jpa.jpql.model
Class DefaultProblem

java.lang.Object
  extended by org.eclipse.persistence.jpa.jpql.model.DefaultProblem
All Implemented Interfaces:
Problem

public final class DefaultProblem
extends java.lang.Object
implements Problem

The default implementation of Problem.

Version:
2.4
Author:
Pascal Filion
Since:
2.4

Constructor Summary
DefaultProblem(StateObject stateObject, java.lang.String messageKey, java.lang.String[] arguments)
          Creates a new DefaultProblem.
 
Method Summary
 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 the StateObject.
 StateObject getStateObject()
          Returns the StateObject where the problem was found.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultProblem

public DefaultProblem(StateObject stateObject,
                      java.lang.String messageKey,
                      java.lang.String[] arguments)
Creates a new DefaultProblem.

Parameters:
stateObject - The StateObject where the problem was found
messageKey - The key used to retrieve the localized message describing the problem found with the current state of this StateObject
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 interface Problem
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 the StateObject.

Specified by:
getMessageKey in interface Problem
Returns:
The key used to retrieve the localized message

getStateObject

public StateObject getStateObject()
Returns the StateObject where the problem was found.

Specified by:
getStateObject in interface Problem
Returns:
The StateObject where the problem was found

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference