Package org.hipparchus.geometry
Enum LocalizedGeometryFormats
- java.lang.Object
-
- java.lang.Enum<LocalizedGeometryFormats>
-
- org.hipparchus.geometry.LocalizedGeometryFormats
-
- All Implemented Interfaces:
Serializable
,Comparable<LocalizedGeometryFormats>
,Localizable
public enum LocalizedGeometryFormats extends Enum<LocalizedGeometryFormats> implements 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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANNOT_NORMALIZE_A_ZERO_NORM_VECTOR
CANNOT_NORMALIZE_A_ZERO_NORM_VECTOR.CLOSE_VERTICES
CLOSE_VERTICES.CLOSEST_ORTHOGONAL_MATRIX_HAS_NEGATIVE_DETERMINANT
CLOSEST_ORTHOGONAL_MATRIX_HAS_NEGATIVE_DETERMINANT.CROSSING_BOUNDARY_LOOPS
CROSSING_BOUNDARY_LOOPS.EDGE_CONNECTED_TO_ONE_FACET
EDGE_CONNECTED_TO_ONE_FACET.FACET_ORIENTATION_MISMATCH
FACET_ORIENTATION_MISMATCH.FACET_WITH_SEVERAL_BOUNDARY_LOOPS
FACET_WITH_SEVERAL_BOUNDARY_LOOPS.INCONSISTENT_STATE_AT_2_PI_WRAPPING
INCONSISTENT_STATE_AT_2_PI_WRAPPING.INVALID_ROTATION_ORDER_NAME
INVALID_ROTATION_ORDER_NAME.NON_INVERTIBLE_TRANSFORM
NON_INVERTIBLE_TRANSFORM.NOT_CONVEX
NOT_CONVEX.NOT_CONVEX_HYPERPLANES
NOT_CONVEX_HYPERPLANES.NOT_SUPPORTED_IN_DIMENSION_N
NOT_SUPPORTED_IN_DIMENSION_N.OUT_OF_PLANE
OUT_OF_PLANE.OUTLINE_BOUNDARY_LOOP_OPEN
OUTLINE_BOUNDARY_LOOP_OPEN.ROTATION_MATRIX_DIMENSIONS
ROTATION_MATRIX_DIMENSIONS.TOO_SMALL_TOLERANCE
TOO_SMALL_TOLERANCE.UNABLE_TO_ORTHOGONOLIZE_MATRIX
UNABLE_TO_ORTHOGONOLIZE_MATRIX.ZERO_NORM_FOR_ROTATION_AXIS
ZERO_NORM_FOR_ROTATION_AXIS.ZERO_NORM_FOR_ROTATION_DEFINING_VECTOR
ZERO_NORM_FOR_ROTATION_DEFINING_VECTOR.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalizedString(Locale locale)
Gets the localized string.String
getSourceString()
Gets the source (non-localized) string.static LocalizedGeometryFormats
valueOf(String name)
Returns the enum constant of this type with the specified name.static LocalizedGeometryFormats[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CANNOT_NORMALIZE_A_ZERO_NORM_VECTOR
public static final LocalizedGeometryFormats CANNOT_NORMALIZE_A_ZERO_NORM_VECTOR
CANNOT_NORMALIZE_A_ZERO_NORM_VECTOR.
-
CLOSE_VERTICES
public static final LocalizedGeometryFormats CLOSE_VERTICES
CLOSE_VERTICES.
-
CLOSEST_ORTHOGONAL_MATRIX_HAS_NEGATIVE_DETERMINANT
public static final LocalizedGeometryFormats CLOSEST_ORTHOGONAL_MATRIX_HAS_NEGATIVE_DETERMINANT
CLOSEST_ORTHOGONAL_MATRIX_HAS_NEGATIVE_DETERMINANT.
-
CROSSING_BOUNDARY_LOOPS
public static final LocalizedGeometryFormats CROSSING_BOUNDARY_LOOPS
CROSSING_BOUNDARY_LOOPS.
-
EDGE_CONNECTED_TO_ONE_FACET
public static final LocalizedGeometryFormats EDGE_CONNECTED_TO_ONE_FACET
EDGE_CONNECTED_TO_ONE_FACET.
-
FACET_ORIENTATION_MISMATCH
public static final LocalizedGeometryFormats FACET_ORIENTATION_MISMATCH
FACET_ORIENTATION_MISMATCH.
-
INCONSISTENT_STATE_AT_2_PI_WRAPPING
public static final LocalizedGeometryFormats INCONSISTENT_STATE_AT_2_PI_WRAPPING
INCONSISTENT_STATE_AT_2_PI_WRAPPING.
-
NON_INVERTIBLE_TRANSFORM
public static final LocalizedGeometryFormats NON_INVERTIBLE_TRANSFORM
NON_INVERTIBLE_TRANSFORM.
-
NOT_CONVEX
public static final LocalizedGeometryFormats NOT_CONVEX
NOT_CONVEX.
-
NOT_CONVEX_HYPERPLANES
public static final LocalizedGeometryFormats NOT_CONVEX_HYPERPLANES
NOT_CONVEX_HYPERPLANES.
-
NOT_SUPPORTED_IN_DIMENSION_N
public static final LocalizedGeometryFormats NOT_SUPPORTED_IN_DIMENSION_N
NOT_SUPPORTED_IN_DIMENSION_N.
-
OUTLINE_BOUNDARY_LOOP_OPEN
public static final LocalizedGeometryFormats OUTLINE_BOUNDARY_LOOP_OPEN
OUTLINE_BOUNDARY_LOOP_OPEN.
-
FACET_WITH_SEVERAL_BOUNDARY_LOOPS
public static final LocalizedGeometryFormats FACET_WITH_SEVERAL_BOUNDARY_LOOPS
FACET_WITH_SEVERAL_BOUNDARY_LOOPS.
-
OUT_OF_PLANE
public static final LocalizedGeometryFormats OUT_OF_PLANE
OUT_OF_PLANE.
-
ROTATION_MATRIX_DIMENSIONS
public static final LocalizedGeometryFormats ROTATION_MATRIX_DIMENSIONS
ROTATION_MATRIX_DIMENSIONS.
-
UNABLE_TO_ORTHOGONOLIZE_MATRIX
public static final LocalizedGeometryFormats UNABLE_TO_ORTHOGONOLIZE_MATRIX
UNABLE_TO_ORTHOGONOLIZE_MATRIX.
-
ZERO_NORM_FOR_ROTATION_AXIS
public static final LocalizedGeometryFormats ZERO_NORM_FOR_ROTATION_AXIS
ZERO_NORM_FOR_ROTATION_AXIS.
-
ZERO_NORM_FOR_ROTATION_DEFINING_VECTOR
public static final LocalizedGeometryFormats ZERO_NORM_FOR_ROTATION_DEFINING_VECTOR
ZERO_NORM_FOR_ROTATION_DEFINING_VECTOR.
-
TOO_SMALL_TOLERANCE
public static final LocalizedGeometryFormats TOO_SMALL_TOLERANCE
TOO_SMALL_TOLERANCE.
-
INVALID_ROTATION_ORDER_NAME
public static final LocalizedGeometryFormats INVALID_ROTATION_ORDER_NAME
INVALID_ROTATION_ORDER_NAME.
-
-
Method Detail
-
values
public static LocalizedGeometryFormats[] 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 (LocalizedGeometryFormats c : LocalizedGeometryFormats.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LocalizedGeometryFormats 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 nameNullPointerException
- if the argument is null
-
getSourceString
public String getSourceString()
Gets the source (non-localized) string.- Specified by:
getSourceString
in interfaceLocalizable
- Returns:
- the source string.
-
getLocalizedString
public String getLocalizedString(Locale locale)
Gets the localized string.- Specified by:
getLocalizedString
in interfaceLocalizable
- Parameters:
locale
- locale into which to get the string.- Returns:
- the localized string or the source string if no localized version is available.
-
-