public enum NumericalPrecision extends java.lang.Enum<NumericalPrecision> implements NlsKey, BinaryDataType, PersistentId
SUB_KEY_ACTION, SUB_KEY_COLUMN, SUB_KEY_CONFIRM, SUB_KEY_CONST, SUB_KEY_DBO, SUB_KEY_DEMO, SUB_KEY_ERROR, SUB_KEY_FIELD, SUB_KEY_GUI, SUB_KEY_HELP, SUB_KEY_INFO, SUB_KEY_LABEL, SUB_KEY_MENU, SUB_KEY_MESSAGE, SUB_KEY_MISC, SUB_KEY_STATUS, SUB_KEY_TIP, SUB_KEY_TOOL, SUB_KEY_WINDOW, SUB_KEY_WORKFLOW| Modifier and Type | Method and Description |
|---|---|
static NumericalPrecision |
fromBitCount(int bits) |
NumericalPrecision |
fromPersistentId(int bits) |
static NumericalPrecision |
fromString(java.lang.String value) |
java.lang.String |
getAppKey()
Returns the base prefix of the key
|
int |
getBitCount() |
int |
getByteCount()
Returns the size of data in bytes.
|
int |
getByteCount(int numValues)
Counts the storage area for the given number of values of this type.
|
int |
getPersistentId()
Returns the int value to be stored in the database or file.
|
java.lang.String |
getSubKey()
Returns the path of the key
|
java.lang.String |
getText(java.lang.Object... args)
Returns the translated text, which is the value of the translation key
as stored in the translation map.
|
boolean |
is32Bit() |
boolean |
is64Bit() |
static NumericalPrecision |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NumericalPrecision[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NumericalPrecision BIT_32
public static final NumericalPrecision BIT_64
public static NumericalPrecision[] values()
for (NumericalPrecision c : NumericalPrecision.values()) System.out.println(c);
public static NumericalPrecision valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant
with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getPersistentId()
PersistentIdgetPersistentId in interface PersistentIdpublic int getBitCount()
public int getByteCount()
BinaryDataTypegetByteCount in interface BinaryDataTypepublic int getByteCount(int numValues)
BinaryDataTypegetByteCount in interface BinaryDataTypepublic boolean is32Bit()
public boolean is64Bit()
public java.lang.String getText(java.lang.Object... args)
NlsKeypublic java.lang.String getAppKey()
NlsKeypublic java.lang.String getSubKey()
NlsKeypublic NumericalPrecision fromPersistentId(int bits)
public static NumericalPrecision fromString(java.lang.String value)
public static NumericalPrecision fromBitCount(int bits)
Copyright © 2014 EsprIT-Systems. All Rights Reserved.