3193. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/9/2017 3:49:56 PM Eastern Daylight 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.

3193.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:49:56 2017 UTC
2 eHealth_Exch (eHealth Exchange Enhancements) Build 3 docs & code_May_2017.zip\VAP_CIF_CODE0502.zip\VAP_CIF_CODE0502\VAP_CIF_CODE0502\nvap-common\src\main\java\gov\va\nvap\common\date GregorianDateUtil.java Fri Apr 21 20:03:26 2017 UTC

3193.2 Comparison summary

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

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

3193.4 Active regular expressions

No regular expressions were active.

3193.5 Comparison detail

        1   package go v.va.nvap. common.dat e;
        2  
        3   import gov .va.nvap.c ommon.vali dation.Ass ert;
        4  
        5   import jav a.text.Par seExceptio n;
        6   import jav a.util.Dat e;
        7   import jav a.util.Gre gorianCale ndar;
        8  
        9   import jav ax.xml.dat atype.Data typeConfig urationExc eption;
        10   import jav ax.xml.dat atype.Data typeFactor y;
        11   import jav ax.xml.dat atype.XMLG regorianCa lendar;
        12  
        13   /**
        14    * Utility  for date  and time.
        15    * 
        16    * @author  Asha Amri traj
        17    */
        18   public cla ss Gregori anDateUtil  {
        19  
        20           pu blic stati c Date get DateFromGr egorianCal endar(
        21                             final  XMLGregori anCalendar  calendar)  {
        22                    Asse rt.assertN otEmpty(ca lendar, "C alendar ca nnot be em pty!");
        23                    retu rn calenda r.toGregor ianCalenda r().getTim e();
        24           }
        25  
        26           /* *
        27            *  Get the g regorian c alendar by  date.
        28            *  
        29            *  @param da te
        30            *              the date
        31            *  @return X MLGregoria nCalendar  - gregoria n calendar
        32            *  @throws R untimeExce ption
        33            * /
        34           pu blic stati c XMLGrego rianCalend ar getGreg orianCalen darByDate(
        35                             final  Date date)  {
        36                    Asse rt.assertN otEmpty(da te, "Date  cannot be  empty!");
        37                    fina l Gregoria nCalendar  gc = new G regorianCa lendar();
        38                    gc.s etTime(dat e);
        39                    try  {
        40                             return  DatatypeF actory.new Instance() .newXMLGre gorianCale ndar(gc);
        41                    } ca tch (final  DatatypeC onfigurati onExceptio n ex) {
        42                             throw  new Runtim eException (ex);
        43                    }
        44           }
        45  
        46           /* *
        47            *  Get Grego rian calen dar by dat e string.
        48            *  
        49            *  @param da teString
        50            *              the date  string
        51            *  @return X MLGregoria nCalendar  - the XMLG regorianCa lendar
        52            *  @throws P arseExcept ion
        53            *               an exce ption when  convertin g the stri ng to Greg orian cale ndar
        54            * /
        55           pu blic stati c XMLGrego rianCalend ar getGreg orianCalen darByDateS tring(
        56                             final  String dat eString) t hrows Pars eException  {
        57                    Asse rt.assertN otEmpty(da teString,  "Date stri ng cannot  be empty!" );
        58                    fina l Date dat e = DateUt il.parseDa teFromStri ng(dateStr ing);
        59                    retu rn Gregori anDateUtil .getGregor ianCalenda rByDate(da te);
        60           }
        61  
        62           /* *
        63            *  Default c onstructor .
        64            * /
        65           pr otected Gr egorianDat eUtil() {
        66           }
        67  
        68   }