146. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/11/2019 10:54:12 AM 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.

146.1 Files compared

# Location File Last Modified
1 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\io ClassMapping.java Wed May 29 15:26:34 2019 UTC
2 HTRE_P3_v14.5_iter_4_build_14.zip\java\gov\va\med\fw\io ClassMapping.java Mon Jun 10 19:30:05 2019 UTC

146.2 Comparison summary

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

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

146.4 Active regular expressions

No regular expressions were active.

146.5 Comparison detail

  1   /********* ********** ********** ********** ********** ********** *********
  2    * Copyrii ght 2005 V HA. All ri ghts reser ved
  3    ********* ********** ********** ********** ********** ********** *********/
  4  
  5   package go v.va.med.f w.io;
  6  
  7   import jav a.util.Has hMap;
  8   import jav a.util.Ite rator;
  9   import jav a.util.Lis t;
  10   import jav a.util.Map ;
  11  
  12   import org .apache.co mmons.lang .Validate;
  13  
  14   import gov .va.med.fw .service.A bstractCom ponent;
  15   import gov .va.med.fw .util.Inva lidConfigu rationExce ption;
  16  
  17   /**
  18    * Maps a  target Cla ss to File FieldMetaD ata inform ation.
  19    * 
  20    * Created  Feb 21, 2 006 3:09:0 6 PM
  21    * 
  22    * @author   DNS     DN S
  23    */
  24   public cla ss ClassMa pping exte nds Abstra ctComponen t {
  25           pr ivate Clas s targetCl ass;
  26  
  27           pr ivate List  fieldsMet aData;
  28           pr ivate Map  fieldsMeta DataMap;
  29  
  30           /* *
  31            *  If true,  use index  as name of  the field
  32            * /
  33           pr ivate bool ean explic itFieldsMe taDataOrde ring = fal se;
  34  
  35           pr ivate bool ean sectio nHeaderOnS eparateLin e = true;
  36  
  37           /* *
  38            *  @return R eturns the  fieldsMet aData.
  39            * /
  40           pu blic List  getFieldsM etaData()  {
  41                    retu rn fieldsM etaData;
  42           }
  43  
  44           /* *
  45            *  @param fi eldsMetaDa ta
  46            *              The fiel dsMetaData  to set.
  47            * /
  48           pu blic void  setFieldsM etaData(Li st fieldsM etaData) {
  49                    this .fieldsMet aData = fi eldsMetaDa ta;
  50           }
  51  
  52           pu blic boole an hasFiel dsMetaData () {
  53                    retu rn fieldsM etaData !=  null && ! fieldsMeta Data.isEmp ty();
  54           }
  55  
  56           /* *
  57            *  @return R eturns the  explicitF ieldsMetaD ataOrderin g.
  58            * /
  59           pu blic boole an isExpli citFieldsM etaDataOrd ering() {
  60                    retu rn explici tFieldsMet aDataOrder ing;
  61           }
  62  
  63           /* *
  64            *  @param ex plicitFiel dsMetaData Ordering
  65            *              The expl icitFields MetaDataOr dering to  set.
  66            * /
  67           pu blic void  setExplici tFieldsMet aDataOrder ing(boolea n explicit FieldsMeta DataOrderi ng) {
  68                    this .explicitF ieldsMetaD ataOrderin g = explic itFieldsMe taDataOrde ring;
  69           }
  70  
  71           /* *
  72            *  @return R eturns the  targetCla ss.
  73            * /
  74           pu blic Class  getTarget Class() {
  75                    retu rn targetC lass;
  76           }
  77  
  78           /* *
  79            *  @param ta rgetClass
  80            *              The targ etClass to  set.
  81            * /
  82           pu blic void  setTargetC lass(Class  targetCla ss) {
  83                    this .targetCla ss = targe tClass;
  84           }
  85  
  86           pu blic FileF ieldMetaDa ta getFiel dMetaData( String nam e) {
  87                    retu rn fieldsM etaDataMap  != null ?  (FileFiel dMetaData)  fieldsMet aDataMap.g et(name) :  null;
  88           }
  89  
  90           pu blic void  afterPrope rtiesSet()  {
  91                    Vali date.notNu ll(targetC lass, "tar getClass c an not be  null");
  92                    if ( (fieldsMet aData == n ull || fie ldsMetaDat a.isEmpty( ))
  93                                      && !RawF ileDataCon tainer.cla ss.isAssig nableFrom( targetClas s))
  94                             throw  new Invali dConfigura tionExcept ion(
  95                                               "Either fi eldsMetaDa ta must be  provided  or the tar getClass m ust implem ent RawFil eDataConta iner");
  96                    if ( fieldsMeta Data != nu ll) {
  97                             fields MetaDataMa p = new Ha shMap();
  98                             Iterat or itr = f ieldsMetaD ata.iterat or();
  99                             FileFi eldMetaDat a meta = n ull;
  100                             while  (itr.hasNe xt()) {
  101                                      meta = ( FileFieldM etaData) i tr.next();
  102                                      fieldsMe taDataMap. put(meta.g etName(),  meta);
  103                             }
  104                    }
  105           }
  106  
  107           /* *
  108            *  @return R eturns the  sectionHe aderOnSepa rateLine.
  109            * /
  110           pu blic boole an isSecti onHeaderOn SeparateLi ne() {
  111                    retu rn section HeaderOnSe parateLine ;
  112           }
  113  
  114           /* *
  115            *  @param se ctionHeade rOnSeparat eLine
  116            *              The sect ionHeaderO nSeparateL ine to set .
  117            * /
  118           pu blic void  setSection HeaderOnSe parateLine (boolean s ectionHead erOnSepara teLine) {
  119                    this .sectionHe aderOnSepa rateLine =  sectionHe aderOnSepa rateLine;
  120           }
  121   }