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

3225.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\xsl AbstractXSLTransformer.java Fri Apr 21 20:03:26 2017 UTC

3225.2 Comparison summary

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

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

3225.4 Active regular expressions

No regular expressions were active.

3225.5 Comparison detail

        1   package go v.va.nvap. common.tra nsformer.x sl;
        2  
        3   import gov .va.nvap.c ommon.vali dation.Ass ert;
        4   import gov .va.nvap.c ommon.vali dation.Nul lChecker;
        5   import gov .va.nvap.c ommon.xsl. Transforme rFactory;
        6  
        7   import jav a.io.IOExc eption;
        8   import jav a.util.Has hMap;
        9   import jav a.util.Ite rator;
        10   import jav a.util.Map ;
        11  
        12   import jav ax.xml.tra nsform.Err orListener ;
        13   import jav ax.xml.tra nsform.Res ult;
        14   import jav ax.xml.tra nsform.Sou rce;
        15   import jav ax.xml.tra nsform.Tem plates;
        16   import jav ax.xml.tra nsform.Tra nsformerEx ception;
        17  
        18   import org .springfra mework.bea ns.factory .annotatio n.Required ;
        19   import org .springfra mework.con text.Appli cationCont ext;
        20   import org .springfra mework.con text.Appli cationCont extAware;
        21   import org .springfra mework.cor e.io.Resou rce;
        22   import org .w3c.dom.D OMExceptio n;
        23  
        24   /**
        25    * The abs tract clas s for tran sforming u sing XSL.
        26    * 
        27    * @author  Asha Amri traj
        28    */
        29   public abs tract clas s Abstract XSLTransfo rmer imple ments
        30                    Appl icationCon textAware,  XSLTransf ormer {
        31  
        32           pu blic stati c void thr owTransfor merExcepti on(final S tring mess age)
        33                             throws  Transform erExceptio n {
        34                    thro w new Tran sformerExc eption(mes sage);
        35           }
        36  
        37           pr ivate Erro rListener  errorListe ner = null ;
        38           pr ivate fina l Map<Stri ng, Object > paramete rs = new H ashMap<Str ing, Objec t>();
        39           pr ivate Tran sformerFac tory trans formerFact ory;
        40  
        41           pu blic Trans formerFact ory getTra nsformerFa ctory() {
        42                    retu rn this.tr ansformerF actory;
        43           }
        44  
        45           pr ivate void  setAllPar ameters(fi nal javax. xml.transf orm.Transf ormer tran s,
        46                             final  Map<String , Object>  theParamet ers) {
        47                    if ( NullChecke r.isNotEmp ty(thePara meters)) {
        48                             final  Iterator<M ap.Entry<S tring, Obj ect>> ci =  theParame ters
        49                                               .entrySet( ).iterator ();
        50                             while  (ci.hasNex t()) {
        51                                      final Ma p.Entry<St ring, Obje ct> entry  = ci.next( );
        52                                      trans.se tParameter (entry.get Key(), ent ry.getValu e());
        53                             }
        54                    }
        55           }
        56  
        57           @O verride
        58           pu blic final  void setA pplication Context(
        59                             final  Applicatio nContext a pplication Context) {
        60                    this .parameter s.put("app licationCo ntext", ap plicationC ontext);
        61           }
        62  
        63           pu blic final  void setE rrorListen er(final E rrorListen er listene r) {
        64                    this .errorList ener = lis tener;
        65           }
        66  
        67           pu blic final  void setP arameter(f inal Strin g name, fi nal Object  value) {
        68                    this .parameter s.put(name , value);
        69           }
        70  
        71           pu blic final  void setP arameters(
        72                             final  Map<String , ? extend s Object>  theParamet ers) {
        73                    this .parameter s.putAll(t heParamete rs);
        74           }
        75  
        76           @R equired
        77           pu blic void  setTransfo rmerFactor y(
        78                             final  Transforme rFactory t ransformer Factory) {
        79                    this .transform erFactory  = transfor merFactory ;
        80           }
        81  
        82           pr otected fi nal Result  transform (final Res ource reso urce,
        83                             final  Source sou rceMessage ) throws T ransformer Exception  {
        84                    retu rn this.tr ansform(re source, so urceMessag e, null);
        85           }
        86  
        87           pr otected fi nal Result  transform (final Res ource reso urce,
        88                             final  Source sou rceMessage , final Re sult targe tMessage)
        89                             throws  Transform erExceptio n {
        90                    retu rn this.tr ansform(re source, so urceMessag e, targetM essage, nu ll);
        91           }
        92  
        93           pr otected fi nal Result  transform (final Res ource reso urce,
        94                             final  Source sou rceMessage , final Re sult targe tMessage,
        95                             final  Map<String , Object>  dynamicPar ameters)
        96                             throws  Transform erExceptio n {
        97                    Asse rt.assertN otEmpty(re source, "R esource ca nnot be nu ll!");
        98                    try  {
        99  
        100                             final  Templates  templates  = this.tra nsformerFa ctory
        101                                               .newTempla tes(resour ce.getURL( ));
        102                             final  javax.xml. transform. Transforme r trans =  templates
        103                                               .newTransf ormer();
        104                             if (th is.errorLi stener !=  null) {
        105                                      trans.se tErrorList ener(this. errorListe ner);
        106                             }
        107                             this.s etAllParam eters(tran s, this.pa rameters);
        108                             this.s etAllParam eters(tran s, dynamic Parameters );
        109                             trans. transform( sourceMess age, targe tMessage);
        110                             return  targetMes sage;
        111                    } ca tch (final  javax.xml .transform .Transform erExceptio n ex) {
        112                             throw  new Transf ormerExcep tion(ex);
        113                    } ca tch (final  IOExcepti on ex) {
        114                             throw  new Transf ormerExcep tion(ex);
        115                    } ca tch (DOMEx ception ex ) {
        116                throw ne w Transfor merExcepti on(ex);
        117           }
        118           }
        119   }