348. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/13/2018 10:35:29 AM Eastern 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.

348.1 Files compared

# Location File Last Modified
1 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\rule\impl SimpleRuleDataAware.java Fri Dec 7 17:36:36 2018 UTC
2 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\fw\rule\impl SimpleRuleDataAware.java Wed Dec 12 19:46:45 2018 UTC

348.2 Comparison summary

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

348.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

348.4 Active regular expressions

No regular expressions were active.

348.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2004 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4   package go v.va.med.f w.rule.imp l;
  5  
  6   // Java cl asses
  7   import jav a.util.Has hMap;
  8   import jav a.util.Map ;
  9  
  10   import org .apache.co mmons.lang .Validate;
  11  
  12   import gov .va.med.fw .model.Abs tractEntit y;
  13   import gov .va.med.fw .rule.Rule DataAware;
  14  
  15   // EDB cla sses
  16  
  17   /**
  18    * Project : Framewor k
  19    * 
  20    * @author   DN S
  21    * @versio n 1.0
  22    */
  23   public cla ss SimpleR uleDataAwa re impleme nts RuleDa taAware {
  24  
  25           /* *
  26            *  An instan ce of seri alVersionU ID
  27            * /
  28           pr ivate stat ic final l ong serial VersionUID  = -568246 5955804417 216L;
  29  
  30           /* *
  31            *  Constants  for data  element's  name
  32            * /
  33           pr ivate stat ic final S tring PRIS TINE_DATA  = "Pristin eData";
  34           pr ivate stat ic final S tring INCO MING_DATA  = "Incomin gData";
  35           pr ivate stat ic final S tring RESU LT_DATA =  "ResultDat a";
  36  
  37           /* *
  38            *  An instan ce of a co llection o f entities
  39            * /
  40           pr ivate Map< String, Ab stractEnti ty> data =  null;
  41  
  42           /* *
  43            *  A default  construct or
  44            * /
  45           pu blic Simpl eRuleDataA ware() {
  46                    supe r();
  47                    data  = new Has hMap<Strin g, Abstrac tEntity>() ;
  48           }
  49  
  50           /* *
  51            *  Returns a  printine  entity sto red in an  input data  collectio n
  52            *  
  53            *  @return A  printine  version of  an entity
  54            * /
  55           pu blic Abstr actEntity  getPristin eData() {
  56                    retu rn getData (PRISTINE_ DATA);
  57           }
  58  
  59           /* *
  60            *  Sets a pr istine ent ity stored  in an inp ut data co llection
  61            *  
  62            *  @param pr istine
  63            *              A pristi ne version  of an ent ity
  64            * /
  65           pu blic void  setPristin eData(Abst ractEntity  pristine)  {
  66                    setD ata(PRISTI NE_DATA, p ristine);
  67           }
  68  
  69           /* *
  70            *  Returns a n incoming  entity st ored in an  input dat a collecti on
  71            *  
  72            *  @return A n incoming  version o f an entit y
  73            * /
  74           pu blic Abstr actEntity  getIncomin gData() {
  75                    retu rn getData (INCOMING_ DATA);
  76           }
  77  
  78           /* *
  79            *  Sets an i ncoming en tity store d in an in put data c ollection
  80            *  
  81            *  @param in coming
  82            *              An incom ing versio n of an en tity
  83            * /
  84           pu blic void  setIncomin gData(Abst ractEntity  incoming)  {
  85                    Vali date.notNu ll(incomin g, "An inc oming enti ty must no t be null" );
  86                    setD ata(INCOMI NG_DATA, i ncoming);
  87           }
  88  
  89           /* *
  90            *  Returns a  result en tity store d in an in put data c ollection
  91            *  
  92            *  @return A  result ve rsion of a n entity
  93            * /
  94           pu blic Abstr actEntity  getResultD ata() {
  95                    retu rn getData (RESULT_DA TA);
  96           }
  97  
  98           /* *
  99            *  Sets a re sult entit y stored i n an input  data coll ection
  100            *  
  101            *  @param re sult
  102            *              A result  version o f an entit y
  103            * /
  104           pu blic void  setResultD ata(Abstra ctEntity r esult) {
  105                    setD ata(RESULT _DATA, res ult);
  106           }
  107  
  108           /* *
  109            *  Sets an e ntity with  the speci fic name i n a collec tion conta ining inpu t
  110            *  and outpu t data use d in a rul e executio n
  111            *  
  112            *  @param ke y
  113            *              A unique  name of a n entity
  114            *  @param en tity
  115            *              An entit y to set
  116            *  @throws I llegalArgu mentExcept ion
  117            *               Thrown  if either  a key or a n entity i s null or  an entity
  118            *               already  exists
  119            * /
  120           pr otected vo id setData (String ke y, Abstrac tEntity en tity) {
  121                    Vali date.notNu ll(key, "A n entity's  key must  not be nul l");
  122                    Vali date.isTru e(!data.co ntainsKey( key), "An  entity wit h the same  key " + k ey
  123                                      + " alre ady exists  ");
  124                    data .put(key,  entity);
  125           }
  126  
  127           /* *
  128            *  Returns a n entity w ith the sp ecific nam e in a col lection co ntaining i nput
  129            *  and outpu t data use d in a rul e executio n
  130            *  
  131            *  @param ke y
  132            *              A key to  identify  an entity  in a colle ction
  133            *  @return A bstactEnti ty An enti ty
  134            *  @throws I llegalArgu mentExcept ion
  135            *               Thrown  if an enti ty key is  null
  136            * /
  137           pr otected Ab stractEnti ty getData (String ke y) {
  138                    Vali date.notNu ll(key, "A n entity's  key must  not be nul l");
  139                    retu rn (Abstra ctEntity)  data.get(k ey);
  140           }
  141  
  142           /* *
  143            *  @see java .lang.Obje ct#finaliz e()
  144            * /
  145           pr otected vo id finaliz e() throws  Throwable  {
  146                    supe r.finalize ();
  147                    if ( this.data  != null) {
  148                             this.d ata.clear( );
  149                    }
  150                    this .data = nu ll;
  151           }
  152   }