Class NumericFormatBinary
java.lang.Object
com.softwaremining.wrappers.format.Format
com.softwaremining.wrappers.format.AbstractNumericFormat
com.softwaremining.wrappers.format.NumericFormat
com.softwaremining.wrappers.format.NumericFormatCompressed
com.softwaremining.wrappers.format.NumericFormatBinary
- Direct Known Subclasses:
TandemNative
Used for representation of COMP_MODE_COMP
-
Field Summary
Fields inherited from class com.softwaremining.wrappers.format.NumericFormat
P_onLeft, P_onRight, P_Size
Fields inherited from class com.softwaremining.wrappers.format.AbstractNumericFormat
DECIMAL_POINT_ON_SYSTEM
Fields inherited from class com.softwaremining.wrappers.format.Format
additionalParamsPostfixesMap, justifiedRight, totalRuntime_convertFromDisplayToStorage, totalRuntime_getInstance
-
Method Summary
Modifier and TypeMethodDescriptionint
final String
convertFromCompressedStorageToDisplayFormat
(String formattedString) Convert from Storage-Compressed to Display This methods returns the actual stored value, even it is bigger than the defined format.final String
convertFromStorageToDisplayFormat
(String formattedString) protected final String
formatHelper
(long longVal, boolean isNegative) formathelper -protected final void
handleIntegerPart
(StringBuilder body, boolean[] sizeError) static final void
setWordStorage
(boolean wordStorage) Methods inherited from class com.softwaremining.wrappers.format.NumericFormatCompressed
convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, isCompressed
Methods inherited from class com.softwaremining.wrappers.format.NumericFormat
getIntegerSize, getNumberOfDigits, getSQLObject, getStorageCellSize
Methods inherited from class com.softwaremining.wrappers.format.AbstractNumericFormat
adjustPercision, getFractionSize, getSystemDecimalPoint, isDecimal, isSigned
Methods inherited from class com.softwaremining.wrappers.format.Format
assignJustifiedRight, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, getAllFormatInstances, getInstance, getInstance, getPicture, isJustifiedRight, toString
-
Method Details
-
setWordStorage
public static final void setWordStorage(boolean wordStorage) -
calculateFormattedCellSize
public int calculateFormattedCellSize() -
formatHelper
formathelper -- Parameters:
longVal
-- Returns:
-
convertFromStorageToDisplayFormat
- Specified by:
convertFromStorageToDisplayFormat
in classFormat
-
convertFromCompressedStorageToDisplayFormat
Description copied from class:NumericFormatCompressed
Convert from Storage-Compressed to Display This methods returns the actual stored value, even it is bigger than the defined format.
E.g. PIC 9(2) COMP can store a value of 30000 ! This method will return "30000", but convertFromStorageToDisplayFormat will return "30".- Specified by:
convertFromCompressedStorageToDisplayFormat
in classNumericFormatCompressed
- Parameters:
formattedString
-- Returns:
-
handleIntegerPart
-