Top Description Fields Constructors Methods
org.eclipse.persistence.jpa.jpql.tools.model

public final Class DefaultProblem

extends Object
implements Problem
Class Inheritance
All Implemented Interfaces
org.eclipse.persistence.jpa.jpql.tools.model.Problem
Annotations
@SuppressWarnings:nls
Imports
org.eclipse.persistence.jpa.jpql.tools.model.query.StateObject

The default implementation of Problem.
Author
Pascal Filion
Since
2.4
Version
2.4

Field Summary

Modifier and TypeField and Description
private String[]
arguments

A list of arguments that can be used to complete the message or an empty list if no additional information is necessary.

private String
messageKey

The key used to retrieve the localized message describing the problem found with the current state of this StateObject.

private StateObject
stateObject

The location where the problem was found.

Constructor Summary

AccessConstructor and Description
public
DefaultProblem(StateObject
The StateObject where the problem was found
stateObject
,
String
The key used to retrieve the localized message describing the problem found with the current state of this StateObject
messageKey
,
String[]
A list of arguments that can be used to complete the message or an empty list if no additional information is necessary
arguments
)

Creates a new DefaultProblem.

Method Summary

Modifier and TypeMethod and Description
public String[]
getMessageArguments()

Implements org.eclipse.persistence.jpa.jpql.tools.model.Problem.getMessageArguments.

Returns the arguments associate with the problem's message.
public String
getMessageKey()

Implements org.eclipse.persistence.jpa.jpql.tools.model.Problem.getMessageKey.

Returns the key used to retrieve the localized message describing the problem found in the StateObject.
public StateObject
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

argumentsback to summary
private String[] arguments

A list of arguments that can be used to complete the message or an empty list if no additional information is necessary.

messageKeyback to summary
private String messageKey

The key used to retrieve the localized message describing the problem found with the current state of this StateObject.

stateObjectback to summary
private StateObject stateObject

The location where the problem was found.

Constructor Detail

DefaultProblemback to summary
public DefaultProblem(StateObject stateObject, String messageKey, String[] arguments)

Creates a new DefaultProblem.

Parameters
stateObject:StateObject

The StateObject where the problem was found

messageKey:String

The key used to retrieve the localized message describing the problem found with the current state of this StateObject

arguments:String[]

A list of arguments that can be used to complete the message or an empty list if no additional information is necessary

Method Detail

getMessageArgumentsback to summary
public String[] getMessageArguments()

Implements org.eclipse.persistence.jpa.jpql.tools.model.Problem.getMessageArguments.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.Problem.getMessageArguments.

Returns the arguments associate with the problem's message.

Returns:String[]

A non-null list of arguments that can be used to format the localized message

Annotations
@Override
getMessageKeyback to summary
public String getMessageKey()

Implements org.eclipse.persistence.jpa.jpql.tools.model.Problem.getMessageKey.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.Problem.getMessageKey.

Returns the key used to retrieve the localized message describing the problem found in the StateObject.

Returns:String

The key used to retrieve the localized message

Annotations
@Override
getStateObjectback to summary
public StateObject getStateObject()

Implements org.eclipse.persistence.jpa.jpql.tools.model.Problem.getStateObject.

Doc from org.eclipse.persistence.jpa.jpql.tools.model.Problem.getStateObject.

Returns the StateObject where the problem was found.

Returns:StateObject

The StateObject where the problem was found

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override