Spatial DataBlade
JAVA API v8.21

com.ibm.spatial.util
Class ImplementationMessages

java.lang.Object
  extended by com.ibm.spatial.util.ImplementationMessages
All Implemented Interfaces:
MessageProvider

public class ImplementationMessages
extends java.lang.Object
implements MessageProvider

ImplementationMessages provides internal error messages for the Spatial API.


Field Summary
static int MSG_BAD_CODE
          Error codes.
static int MSG_BAD_ERROR_TYPE
          Error codes.
static int MSG_BAD_RUNTIME_ERROR
          Error codes.
static int MSG_FATAL_ERROR
          Error codes.
static int MSG_FORMAT_ERROR
          Error codes.
static int MSG_MAX_CODE
          Error codes.
 
Constructor Summary
ImplementationMessages()
           
 
Method Summary
 java.util.Locale getLocale()
          Gets the locale used for error messages.
 java.lang.String getMessage(int code, java.lang.Object[] args)
          Creates a message from the specified code and replacement arguments, localized to the current locale.
 java.lang.String getMessage(int code, java.lang.Object[] args, java.util.Locale locale)
          Creates a message from the specified code and replacement arguments, localized to the given locale.
 void setLocale(java.util.Locale locale)
          Sets the locale used for error messages.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_BAD_CODE

public static final int MSG_BAD_CODE
Error codes.

See Also:
Constant Field Values

MSG_FORMAT_ERROR

public static final int MSG_FORMAT_ERROR
Error codes.

See Also:
Constant Field Values

MSG_FATAL_ERROR

public static final int MSG_FATAL_ERROR
Error codes.

See Also:
Constant Field Values

MSG_BAD_ERROR_TYPE

public static final int MSG_BAD_ERROR_TYPE
Error codes.

See Also:
Constant Field Values

MSG_BAD_RUNTIME_ERROR

public static final int MSG_BAD_RUNTIME_ERROR
Error codes.

See Also:
Constant Field Values

MSG_MAX_CODE

public static final int MSG_MAX_CODE
Error codes.

See Also:
Constant Field Values
Constructor Detail

ImplementationMessages

public ImplementationMessages()
Method Detail

setLocale

public void setLocale(java.util.Locale locale)
Sets the locale used for error messages.

Specified by:
setLocale in interface MessageProvider
Parameters:
locale - The new locale.

getLocale

public java.util.Locale getLocale()
Gets the locale used for error messages.

Specified by:
getLocale in interface MessageProvider
Returns:
The current locale.

getMessage

public java.lang.String getMessage(int code,
                                   java.lang.Object[] args,
                                   java.util.Locale locale)
Creates a message from the specified code and replacement arguments, localized to the given locale.

Specified by:
getMessage in interface MessageProvider
Parameters:
locale - The requested locale of the message to be created.
code - The key for the message text.
args - The arguments to be used as replacement text in the message created.
Returns:
a localized message from the specified message code

getMessage

public java.lang.String getMessage(int code,
                                   java.lang.Object[] args)
Creates a message from the specified code and replacement arguments, localized to the current locale. If no locale has been set, the default locale is being used.

Specified by:
getMessage in interface MessageProvider
Parameters:
code - The key for the message text.
args - The arguments to be used as replacement text in the message created.
Returns:
a localized message from the specified message code

Spatial DataBlade
JAVA API v8.21


Licensed Materials - Property of IBM
Copyright IBM Corp. 2002, 2012 All Rights Reserved.