August 2003
Intermediate to advanced
624 pages
15h 3m
English
As noted above, this class is derived from the DataCellN class developed in Chapter 8. It uses base class methods for everything but the prepareOutput method, which handles the formatting requirements of the X12 Numeric data type.
Arguments: None Returns: Status or throws exception NegativeNumber <- false IF first character in Cell Buffer is "-" Cell Buffer <- Shift Cell Buffer left one character to remove Minus sign Negative Number <- true Decrement Buffer Length ENDIF Minimum Length <- Call Grammar Element's getAttribute for "MinLength", converting to integer IF (Buffer Length < Minimum Length) Call justifyFieldRight, passing Minimum Length and zero as Fill ... |