3223. EPMO Open Source Coordination Office Redaction File Detail Report

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

3223.1 Files compared

# Location File Last Modified
1 Fri Jun 9 19:49:58 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\transformer\xml StringToXML.java Fri Apr 21 20:03:26 2017 UTC

3223.2 Comparison summary

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

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

3223.4 Active regular expressions

No regular expressions were active.

3223.5 Comparison detail

        1   package go v.va.nvap. common.tra nsformer.x ml;
        2  
        3   import gov .va.nvap.c ommon.util .DocumentB uilderFact oryUtil;
        4   import gov .va.nvap.c ommon.tran sformer.Tr ansformerE xception;
        5   import gov .va.nvap.c ommon.vali dation.Nul lChecker;
        6  
        7   import jav a.io.IOExc eption;
        8   import jav a.io.Strin gReader;
        9  
        10   import jav ax.xml.par sers.Docum entBuilder ;
        11   import jav ax.xml.par sers.Docum entBuilder Factory;
        12   import jav ax.xml.par sers.Facto ryConfigur ationError ;
        13   import jav ax.xml.par sers.Parse rConfigura tionExcept ion;
        14  
        15   import org .w3c.dom.D ocument;
        16   import org .xml.sax.I nputSource ;
        17   import org .xml.sax.S AXExceptio n;
        18  
        19   import sta tic org.ap ache.commo ns.lang.St ringEscape Utils.esca peXml;
        20  
        21   /**
        22    * @author  Asha Amri traj
        23    */
        24   public cla ss StringT oXML imple ments
        25           go v.va.nvap. common.tra nsformer.T ransformer <String, D ocument>
        26   {
        27  
        28       public  StringToX ML()
        29       {
        30       }
        31  
        32       @Overr ide
        33       public  final Doc ument tran sform(fina l String s rcString)
        34                throws g ov.va.nvap .common.tr ansformer. Transforme rException
        35       {
        36           if  (NullChec ker.isEmpt y(srcStrin g)) {
        37                return n ull;
        38           }
        39           tr y {
        40                final Do cumentBuil derFactory  factory =  DocumentB uilderFact oryUtil.ge tDocumentB uilderFact ory(null,  true, fals e, false);
        41                factory. setNamespa ceAware(tr ue);
        42                final Do cumentBuil der builde r = factor y.newDocum entBuilder ();
        43                final Do cument doc  = builder .parse(new  InputSour ce(new Str ingReader( srcString) ));
        44  
        45                if (Null Checker.is Empty(doc) ) {
        46                    thro w new Runt imeExcepti on("Docume nt cannot  be null!") ;
        47                }
        48                return d oc;
        49           }
        50           ca tch (final  ParserCon figuration Exception  ex) {
        51                throw ne w Transfor merExcepti on(ex);
        52           }
        53           ca tch (final  FactoryCo nfiguratio nError ex)  {
        54                throw ne w Transfor merExcepti on(ex);
        55           }
        56           ca tch (final  SAXExcept ion ex) {
        57                throw ne w Transfor merExcepti on(ex);
        58           }
        59           ca tch (final  IOExcepti on ex) {
        60                throw ne w Transfor merExcepti on(ex);
        61           }
        62       }
        63   }