Class AlphaNumericFormat
java.lang.Object
com.softwaremining.wrappers.format.Format
com.softwaremining.wrappers.format.AlphaNumericFormat
-
Field Summary
Fields inherited from class com.softwaremining.wrappers.format.Format
additionalParamsPostfixesMap, justifiedRight, totalRuntime_convertFromDisplayToStorage, totalRuntime_getInstance
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addInvisibleChar
(int pos, char ch) final String
convertFromDisplayToStorage
(double value, boolean[] sizeError) format a value according to the PIC definitionfinal String
convertFromDisplayToStorage
(long value, boolean[] sizeError) format a value according to the PIC definitionfinal String
convertFromDisplayToStorage
(String _value, boolean[] sizeError) format a value according to the PIC definitionconvertFromDisplayToStorage
(BigDecimal value, boolean[] sizeError) format a value according to the PIC definitionconvertFromDisplayToStorage
(BigInteger value, boolean[] sizeError) format a value according to the PIC definitionfinal String
convertFromStorageToDisplayFormat
(String formattedString) protected final OrderedMap
int
Returns the number of integer digits of used for Integer and Decimal parts of a number.final Object
getSQLObject
(String formattedString) final int
This is the number of characters in field.final boolean
Methods inherited from class com.softwaremining.wrappers.format.Format
assignJustifiedRight, convertFromDisplayToStorage, convertFromDisplayToStorage, convertFromDisplayToStorage, getAllFormatInstances, getInstance, getInstance, getPicture, isJustifiedRight, toString
-
Constructor Details
-
AlphaNumericFormat
constructor- Parameters:
picture
-
-
-
Method Details
-
isCompressed
public final boolean isCompressed()- Specified by:
isCompressed
in classFormat
-
getNumberOfDigits
public int getNumberOfDigits()Returns the number of integer digits of used for Integer and Decimal parts of a number. For example, given a definition of S9(5)v9(3); the NumberOfDigists is 11.- Specified by:
getNumberOfDigits
in classFormat
- Returns:
-
getSQLObject
- Specified by:
getSQLObject
in classFormat
-
addInvisibleChar
protected final void addInvisibleChar(int pos, char ch) -
getInvisibleChars
-
getStorageCellSize
public final int getStorageCellSize()Description copied from class:Format
This is the number of characters in field.
For example, PIC X(10) will have 10 characters
or PIC 9(16) will have 16 characters
but PIC 9(16) COMP-3 will have 8 characters- Specified by:
getStorageCellSize
in classFormat
- Returns:
- cellsize
-
convertFromDisplayToStorage
format a value according to the PIC definition- Overrides:
convertFromDisplayToStorage
in classFormat
-
convertFromDisplayToStorage
format a value according to the PIC definition- Specified by:
convertFromDisplayToStorage
in classFormat
-
convertFromDisplayToStorage
format a value according to the PIC definition- Specified by:
convertFromDisplayToStorage
in classFormat
-
convertFromDisplayToStorage
format a value according to the PIC definition- Specified by:
convertFromDisplayToStorage
in classFormat
-
convertFromDisplayToStorage
format a value according to the PIC definition- Specified by:
convertFromDisplayToStorage
in classFormat
-
convertFromStorageToDisplayFormat
- Specified by:
convertFromStorageToDisplayFormat
in classFormat
-