Package ca.uhn.hl7v2.model
Class DataTypeUtil
java.lang.Object
ca.uhn.hl7v2.model.DataTypeUtil
This class is used to provide utility functions for other datatype classes and methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturn a signed four digit integer indicating the local GMT offset.static StringpreAppendZeroes(int num, int totalDigitLength) Preappend the zeros to the beginning of num such that the total length equals totalDigitLength and return the string representation of the new number
-
Constructor Details
-
DataTypeUtil
public DataTypeUtil()
-
-
Method Details
-
preAppendZeroes
Preappend the zeros to the beginning of num such that the total length equals totalDigitLength and return the string representation of the new number- Parameters:
num- numbertotalDigitLength- number of digits- Returns:
- string representation of the new number
-
getLocalGMTOffset
Return a signed four digit integer indicating the local GMT offset. This is the HL7 Offset format in integer representation.- Returns:
- a signed four digit integer indicating the local GMT offset
-