|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<NablaMessages> org.apache.commons.nabla.NablaMessages
public enum NablaMessages
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.
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 |
---|
public static final NablaMessages CANNOT_READ_CLASS
public static final NablaMessages CANNOT_INSTANTIATE_ABSTRACT_CLASS
public static final NablaMessages ILLEGAL_ACCESS_TO_CONSTRUCTOR
public static final NablaMessages CANNOT_BUILD_CLASS_FROM_OTHER_CLASS
public static final NablaMessages CANNOT_INSTANTIATE_CLASS_FROM_OTHER_INSTANCE
public static final NablaMessages INCORRECT_GENERATED_CODE
public static final NablaMessages INTERFACE_NOT_FOUND_WHILE_DIFFERENTIATING
public static final NablaMessages CLASS_DOES_NOT_IMPLEMENT_INTERFACE
public static final NablaMessages UNABLE_TO_ANALYZE_METHOD
public static final NablaMessages UNKNOWN_METHOD
public static final NablaMessages NUMBER_OF_TEMPORARY_VARIABLES_OUT_OF_RANGE
public static final NablaMessages INDEX_OF_LOCAL_VARIABLE_OUT_OF_RANGE
public static final NablaMessages UNEXPECTED_INSTRUCTION
public static final NablaMessages UNABLE_TO_HANDLE_INSTRUCTION
public static final NablaMessages CANNOT_GET_VOID_FIELD
public static final NablaMessages ILLEGAL_LDC_CONSTANT
public static final NablaMessages INTERNAL_ERROR
Method Detail |
---|
public static NablaMessages[] values()
for (NablaMessages c : NablaMessages.values()) System.out.println(c);
public static NablaMessages valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String getSourceString()
getSourceString
in interface org.apache.commons.math3.exception.util.Localizable
public String getLocalizedString(Locale locale)
getLocalizedString
in interface org.apache.commons.math3.exception.util.Localizable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |