83. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 3/1/2018 12:13:17 PM Central Standard Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

83.1 Files compared

# Location File Last Modified
1 ehealth_xchange_cif.zip\NHIN_adapter\AdapterLIB\src\main\java\gov\va\med\nhin\adapter\datamanager\translators IsNumericDataTranslator.java Thu Feb 22 14:26:40 2018 UTC
2 ehealth_xchange_cif.zip\NHIN_adapter\AdapterLIB\src\main\java\gov\va\med\nhin\adapter\datamanager\translators IsNumericDataTranslator.java Tue Feb 27 14:28:52 2018 UTC

83.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 74
Changed 1 2
Inserted 0 0
Removed 0 0

83.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

83.4 Active regular expressions

No regular expressions were active.

83.5 Comparison detail

  1   /*
  2    * To chan ge this li cense head er, choose  License H eaders in  Project Pr operties.
  3    * To chan ge this te mplate fil e, choose  Tools | Te mplates
  4    * and ope n the temp late in th e editor.
  5    */
  6   package go v.va.med.n hin.adapte r.datamana ger.transl ators;
  7  
  8   import gov .va.med.nh in.adapter .datamanag er.DataMan agerExcept ion;
  9   import gov .va.med.nh in.adapter .datamanag er.DataQue ry;
  10   import gov .va.med.nh in.adapter .datamanag er.DataTra nslator;
  11   import gov .va.med.nh in.adapter .datamanag er.Referen ce;
  12   import org .apache.co mmons.lang .NumberUti ls;
  13  
  14   /**
  15    *
  16    * @author   DN S      WARDJ
  17    */
  18   public cla ss IsNumer icDataTran slator imp lements Da taTranslat or<String>
  19   {
  20           @O verride
  21           pu blic Strin g translat e(Object i nput, Obje ct result,  Reference  translati onType, Da taQuery da taQuery)
  22           {
  23                    Stri ng ret = n ull;
  24  
  25                    if(i nput != nu ll)
  26                    {
  27                             if(!(i nput insta nceof Stri ng))
  28                             {
  29                                      throw ne w DataMana gerExcepti on("inptu  must be of  type java .lang.Stri ng.");
  30                             }
  31                             if(Num berUtils.i sNumber((S tring)inpu t)) {
  32                                 re t = (Strin g) input;
  33                             }
  34                    }
  35  
  36                    retu rn ret;
  37           }
  38   }