122. EPMO Open Source Coordination Office Redaction File Detail Report

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

122.1 Files compared

# Location File Last Modified
1 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\ccht\model\report\scheduled DateRangeBoundary.java Fri Dec 7 17:36:44 2018 UTC
2 v12.5_iter_7_build 51.zip\TRM_Upgrade\src\main\java\gov\va\med\ccht\model\report\scheduled DateRangeBoundary.java Thu Dec 13 15:05:36 2018 UTC

122.2 Comparison summary

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

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

122.4 Active regular expressions

No regular expressions were active.

122.5 Comparison detail

  1   package go v.va.med.c cht.model. report.sch eduled;
  2  
  3   import jav a.util.Dat e;
  4   import jav a.util.Has hMap;
  5   import jav a.util.Map ;
  6  
  7   /**
  8    * A class  that coll ects the v arious par ameters fo r all poss ible
  9    * DateRan geBoundary Types.
  10    * 
  11    * @author   DNS
  12    * 
  13    */
  14   public cla ss DateRan geBoundary  {
  15  
  16           //  --------- ---------- ---------- -- Fields
  17  
  18           pr ivate Date RangeBound aryType ty pe;
  19  
  20           /*  Fields us ed by Date RangeBound aryType.SP ECIFIC_FIX ED_DAY */
  21           pr ivate Date  specificF ixedDate;
  22  
  23           /*  Fields us ed by Date RangeBound aryType.EX ACT_UNITS_ PRIOR_TO_C URRENT_DAY  */
  24           pr ivate Inte ger numUni tsPriorToC urrentDay;
  25           pr ivate Simp leTimeUnit Type unitP riorToCurr entDay;
  26  
  27           /*
  28            *  Fields us ed by
  29            *  DateRange BoundaryTy pe.FIXED_D AY_OF_PREV IOUS_OR_CU RRENT_UNIT
  30            * /
  31           pr ivate Fixe dDateType  fixedDateT ype;
  32           pr ivate Bool ean usePre viousDateP eriod;
  33           pr ivate Mult iDayTimeUn itType mul tiDayTimeU nitType;
  34  
  35           //  --------- ---------- ---------- -- Constru ctors
  36  
  37           /* *
  38            *  Default c onstructor  that does  nothing.
  39            * /
  40           pu blic DateR angeBounda ry() {
  41           }
  42  
  43           /* *
  44            *  Construct s a new in stance of  a DateRang eBoundary  given the  serialized
  45            *  version p roduced by  the toStr ing() meth od
  46            *  
  47            *  @param se rializedVe rsion
  48            *              The Stri ng version  as produc ed by the  toString()  method
  49            * /
  50           pu blic DateR angeBounda ry(String  serialized Version) {
  51                    Stri ng[] token s = serial izedVersio n.split("; ");
  52                    Map< String, St ring> toke nMap = new  HashMap<S tring, Str ing>();
  53  
  54                    for  (String to ken : toke ns) {
  55                             String [] keyAndV alue = tok en.split(" :");
  56                             tokenM ap.put(key AndValue[0 ], keyAndV alue.lengt h > 1 ? ke yAndValue[ 1] : null) ;
  57                    }
  58  
  59                    Stri ng s = tok enMap.get( "type");
  60                    type  = (s == n ull) ? nul l : DateRa ngeBoundar yType.valu eOf(s);
  61  
  62                    s =  tokenMap.g et("specif icFixedDat e");
  63                    spec ificFixedD ate = (s = = null) ?  null : new  Date(Long .valueOf(s ));
  64  
  65                    s =  tokenMap.g et("numUni tsPriorToC urrentDay" );
  66                    numU nitsPriorT oCurrentDa y = (s ==  null) ? nu ll : new I nteger(s);
  67  
  68                    s =  tokenMap.g et("unitPr iorToCurre ntDay");
  69                    unit PriorToCur rentDay =  (s == null ) ? null :  SimpleTim eUnitType. valueOf(s) ;
  70  
  71                    s =  tokenMap.g et("fixedD ateType");
  72                    fixe dDateType  = (s == nu ll) ? null  : FixedDa teType.val ueOf(s);
  73  
  74                    s =  tokenMap.g et("usePre viousDateP eriod");
  75                    useP reviousDat ePeriod =  (s == null ) ? null :  new Boole an(s);
  76  
  77                    s =  tokenMap.g et("multiD ayTimeUnit Type");
  78                    mult iDayTimeUn itType = ( s == null)  ? null :  MultiDayTi meUnitType .valueOf(s );
  79           }
  80  
  81           //  --------- ---------- ---------- -- Busines s Methods
  82  
  83           /* *
  84            *  Returns a  user-frie ndly descr iption of  this DateR angeBounda ry (e.g.
  85            *  "The curr ent day")
  86            * /
  87           pu blic Strin g getFrien dlyDescrip tion() {
  88                    retu rn type ==  null ? nu ll : type. getFriendl yDescripti on(this);
  89           }
  90  
  91           /* *
  92            *  Calculate s a new da te relativ e to the s pecified s tartDate b ased on th e
  93            *  criteria  (fields) o f this Dat eRangeBoun dary.
  94            *  
  95            *  @param st artDate
  96            *              The date  relative  to which w e're runni ng the cal culation
  97            *  @return T he new dat e
  98            * /
  99           pu blic Date  calculateD ate(Date s tartDate)  {
  100                    retu rn type.ca lculateDat e(startDat e, this);
  101           }
  102  
  103           /* *
  104            *  Returns t his DateRa ngeBoundar y in a Str ing (seria lized) for m, with fi elds
  105            *  separated  by a semi colon; thi s can late r be sent  to the Str ing
  106            *  construct or to full y restore  the object .
  107            * /
  108           pu blic Strin g toString () {
  109                    Stri ngBuilder  sb = new S tringBuild er();
  110  
  111                    sb.a ppend("typ e:");
  112                    if ( type != nu ll)
  113                             sb.app end(type);
  114  
  115                    sb.a ppend(";sp ecificFixe dDate:");
  116                    if ( specificFi xedDate !=  null)
  117                             sb.app end(specif icFixedDat e.getTime( ));
  118  
  119                    sb.a ppend(";nu mUnitsPrio rToCurrent Day:");
  120                    if ( numUnitsPr iorToCurre ntDay != n ull)
  121                             sb.app end(numUni tsPriorToC urrentDay) ;
  122  
  123                    sb.a ppend(";un itPriorToC urrentDay: ");
  124                    if ( unitPriorT oCurrentDa y != null)
  125                             sb.app end(unitPr iorToCurre ntDay);
  126  
  127                    sb.a ppend(";fi xedDateTyp e:");
  128                    if ( fixedDateT ype != nul l)
  129                             sb.app end(fixedD ateType);
  130  
  131                    sb.a ppend(";us ePreviousD atePeriod: ");
  132                    if ( usePreviou sDatePerio d != null)
  133                             sb.app end(usePre viousDateP eriod);
  134  
  135                    sb.a ppend(";mu ltiDayTime UnitType:" );
  136                    if ( multiDayTi meUnitType  != null)
  137                             sb.app end(multiD ayTimeUnit Type);
  138  
  139                    retu rn sb.toSt ring();
  140           }
  141  
  142           //  --------- ---------- ---------- -- Accesso r Methods
  143  
  144           pu blic DateR angeBounda ryType get Type() {
  145                    retu rn type;
  146           }
  147  
  148           pu blic void  setType(Da teRangeBou ndaryType  type) {
  149                    this .type = ty pe;
  150           }
  151  
  152           pu blic Date  getSpecifi cFixedDate () {
  153                    retu rn specifi cFixedDate ;
  154           }
  155  
  156           pu blic void  setSpecifi cFixedDate (Date spec ificFixedD ate) {
  157                    this .specificF ixedDate =  specificF ixedDate;
  158           }
  159  
  160           pu blic Integ er getNumU nitsPriorT oCurrentDa y() {
  161                    retu rn numUnit sPriorToCu rrentDay;
  162           }
  163  
  164           pu blic void  setNumUnit sPriorToCu rrentDay(I nteger num UnitsPrior ToCurrentD ay) {
  165                    this .numUnitsP riorToCurr entDay = n umUnitsPri orToCurren tDay;
  166           }
  167  
  168           pu blic Simpl eTimeUnitT ype getUni tPriorToCu rrentDay()  {
  169                    retu rn unitPri orToCurren tDay;
  170           }
  171  
  172           pu blic void  setUnitPri orToCurren tDay(Simpl eTimeUnitT ype unitPr iorToCurre ntDay) {
  173                    this .unitPrior ToCurrentD ay = unitP riorToCurr entDay;
  174           }
  175  
  176           pu blic Fixed DateType g etFixedDat eType() {
  177                    retu rn fixedDa teType;
  178           }
  179  
  180           pu blic void  setFixedDa teType(Fix edDateType  fixedDate Type) {
  181                    this .fixedDate Type = fix edDateType ;
  182           }
  183  
  184           pu blic Boole an getUseP reviousDat ePeriod()  {
  185                    retu rn usePrev iousDatePe riod;
  186           }
  187  
  188           pu blic void  setUsePrev iousDatePe riod(Boole an usePrev iousDatePe riod) {
  189                    this .usePrevio usDatePeri od = usePr eviousDate Period;
  190           }
  191  
  192           pu blic Multi DayTimeUni tType getM ultiDayTim eUnitType( ) {
  193                    retu rn multiDa yTimeUnitT ype;
  194           }
  195  
  196           pu blic void  setMultiDa yTimeUnitT ype(MultiD ayTimeUnit Type multi DayTimeUni tType) {
  197                    this .multiDayT imeUnitTyp e = multiD ayTimeUnit Type;
  198           }
  199  
  200   }