public enum ToolsMessages extends Enum<ToolsMessages> implements Localizable, Serializable
This class is roughly the same as the one in OREKIT. It adds Patrius tools messages in the same manner as OREKIT does. Users should see OREKIT documentation about localized messages format.
...
PatriusMessages myMessage = PatriusMessages.PDB_MY_MESSAGE;
System.out.println(myMessage.getLocalizedString(Locale.FRENCH));
...
Enum Constant and Description |
---|
CORRUPTED_FILE
CORRUPTED_FILE.
|
INCOHERENT_ARGUMENTS
INCOHERENT_ARGUMENTS.
|
INCOHERENT_PROPERTIES
INCOHERENT_PROPERTIES.
|
INVALID_XML
INVALID_XML.
|
MISSING_INITIAL_STATE
MISSING_INITIAL_STATE.
|
MISSING_NUMERICAL_INTEGRATOR
MISSING_NUMERICAL_INTEGRATOR.
|
MISSING_PROPAGATION_INTERVAL
MISSING_PROPAGATION_INTERVAL.
|
MISSING_STEP_HANDLER
MISSING STEP HANDLER.
|
NULL_ARGUMENT
NULL_ARGUMENT.
|
OUT_OF_RANGE_ARGUMENT
OUT_OF_RANGE_ARGUMENT.
|
UNABLE_TO_FIND_FILE
UNABLE_TO_FIND_FILE.
|
UNABLE_TO_PARSE_URI
UNABLE_TO_PARSE_URI.
|
Modifier and Type | Method and Description |
---|---|
String |
getLocalizedString(Locale locale)
Gets the localized string.
|
String |
getSourceString()
Gets the source (non-localized) string.
|
static ToolsMessages |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ToolsMessages[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ToolsMessages CORRUPTED_FILE
public static final ToolsMessages INCOHERENT_ARGUMENTS
public static final ToolsMessages INCOHERENT_PROPERTIES
public static final ToolsMessages NULL_ARGUMENT
public static final ToolsMessages OUT_OF_RANGE_ARGUMENT
public static final ToolsMessages UNABLE_TO_FIND_FILE
public static final ToolsMessages UNABLE_TO_PARSE_URI
public static final ToolsMessages MISSING_INITIAL_STATE
public static final ToolsMessages MISSING_PROPAGATION_INTERVAL
public static final ToolsMessages MISSING_NUMERICAL_INTEGRATOR
public static final ToolsMessages INVALID_XML
public static final ToolsMessages MISSING_STEP_HANDLER
public static ToolsMessages[] values()
for (ToolsMessages c : ToolsMessages.values()) System.out.println(c);
public static ToolsMessages valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getSourceString()
getSourceString
in interface Localizable
public String getLocalizedString(Locale locale)
getLocalizedString
in interface Localizable
locale
- locale into which to get the string.Copyright © 2019 CNES. All Rights Reserved.