org.apache.commons.nabla
Enum NablaMessages

java.lang.Object
  extended by java.lang.Enum<NablaMessages>
      extended by org.apache.commons.nabla.NablaMessages
All Implemented Interfaces:
Serializable, Comparable<NablaMessages>, org.apache.commons.math3.exception.util.Localizable

public enum NablaMessages
extends Enum<NablaMessages>
implements org.apache.commons.math3.exception.util.Localizable

Enumeration for localized messages formats used in exceptions messages.

The constants in this enumeration represent the available formats as localized strings. These formats are intended to be localized using simple properties files, using the constant name as the key and the property value as the message format. The source English format is provided in the constants themselves to serve both as a reminder for developers to understand the parameters needed by each format, as a basis for translators to create localized properties files, and as a default format if some translation is missing.

Version:
$Id$

Enum Constant Summary
CANNOT_BUILD_CLASS_FROM_OTHER_CLASS
           
CANNOT_GET_VOID_FIELD
           
CANNOT_INSTANTIATE_ABSTRACT_CLASS
           
CANNOT_INSTANTIATE_CLASS_FROM_OTHER_INSTANCE
           
CANNOT_READ_CLASS
           
CLASS_DOES_NOT_IMPLEMENT_INTERFACE
           
ILLEGAL_ACCESS_TO_CONSTRUCTOR
           
ILLEGAL_LDC_CONSTANT
           
INCORRECT_GENERATED_CODE
           
INDEX_OF_LOCAL_VARIABLE_OUT_OF_RANGE
           
INTERFACE_NOT_FOUND_WHILE_DIFFERENTIATING
           
INTERNAL_ERROR
           
NUMBER_OF_TEMPORARY_VARIABLES_OUT_OF_RANGE
           
UNABLE_TO_ANALYZE_METHOD
           
UNABLE_TO_HANDLE_INSTRUCTION
           
UNEXPECTED_INSTRUCTION
           
UNKNOWN_METHOD
           
 
Method Summary
 String getLocalizedString(Locale locale)
          
 String getSourceString()
          
static NablaMessages valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NablaMessages[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CANNOT_READ_CLASS

public static final NablaMessages CANNOT_READ_CLASS

CANNOT_INSTANTIATE_ABSTRACT_CLASS

public static final NablaMessages CANNOT_INSTANTIATE_ABSTRACT_CLASS

ILLEGAL_ACCESS_TO_CONSTRUCTOR

public static final NablaMessages ILLEGAL_ACCESS_TO_CONSTRUCTOR

CANNOT_BUILD_CLASS_FROM_OTHER_CLASS

public static final NablaMessages CANNOT_BUILD_CLASS_FROM_OTHER_CLASS

CANNOT_INSTANTIATE_CLASS_FROM_OTHER_INSTANCE

public static final NablaMessages CANNOT_INSTANTIATE_CLASS_FROM_OTHER_INSTANCE

INCORRECT_GENERATED_CODE

public static final NablaMessages INCORRECT_GENERATED_CODE

INTERFACE_NOT_FOUND_WHILE_DIFFERENTIATING

public static final NablaMessages INTERFACE_NOT_FOUND_WHILE_DIFFERENTIATING

CLASS_DOES_NOT_IMPLEMENT_INTERFACE

public static final NablaMessages CLASS_DOES_NOT_IMPLEMENT_INTERFACE

UNABLE_TO_ANALYZE_METHOD

public static final NablaMessages UNABLE_TO_ANALYZE_METHOD

UNKNOWN_METHOD

public static final NablaMessages UNKNOWN_METHOD

NUMBER_OF_TEMPORARY_VARIABLES_OUT_OF_RANGE

public static final NablaMessages NUMBER_OF_TEMPORARY_VARIABLES_OUT_OF_RANGE

INDEX_OF_LOCAL_VARIABLE_OUT_OF_RANGE

public static final NablaMessages INDEX_OF_LOCAL_VARIABLE_OUT_OF_RANGE

UNEXPECTED_INSTRUCTION

public static final NablaMessages UNEXPECTED_INSTRUCTION

UNABLE_TO_HANDLE_INSTRUCTION

public static final NablaMessages UNABLE_TO_HANDLE_INSTRUCTION

CANNOT_GET_VOID_FIELD

public static final NablaMessages CANNOT_GET_VOID_FIELD

ILLEGAL_LDC_CONSTANT

public static final NablaMessages ILLEGAL_LDC_CONSTANT

INTERNAL_ERROR

public static final NablaMessages INTERNAL_ERROR
Method Detail

values

public static NablaMessages[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NablaMessages c : NablaMessages.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NablaMessages valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getSourceString

public String getSourceString()

Specified by:
getSourceString in interface org.apache.commons.math3.exception.util.Localizable

getLocalizedString

public String getLocalizedString(Locale locale)

Specified by:
getLocalizedString in interface org.apache.commons.math3.exception.util.Localizable


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.