ca.uhn.hl7v2.model
Class DataTypeUtil

java.lang.Object
  extended by ca.uhn.hl7v2.model.DataTypeUtil

public class DataTypeUtil
extends java.lang.Object

This class is used to provide utility functions for other datatype classes and methods.


Constructor Summary
DataTypeUtil()
           
 
Method Summary
static int getLocalGMTOffset()
          This method will return a signed four digit integer indicating the local GMT offset.
static java.lang.String preAppendZeroes(int num, int totalDigitLength)
          This method will preappend the zeros to the beginning of num such that the total length equals totalDigitLength.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTypeUtil

public DataTypeUtil()
Method Detail

preAppendZeroes

public static java.lang.String preAppendZeroes(int num,
                                               int totalDigitLength)
This method will preappend the zeros to the beginning of num such that the total length equals totalDigitLength. It will also return the string representation of the new number.


getLocalGMTOffset

public static int getLocalGMTOffset()
This method will return a signed four digit integer indicating the local GMT offset. This is the HL7 Offset format in integer representation.



Copyright © 2001-2011 University Health Network. All Rights Reserved.