78. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 12/5/2017 12:06:36 PM Central 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.

78.1 Files compared

# Location File Last Modified
1 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CacheWeb\src\gov\va\med\cache\gui\shared InstanceVO.java Mon Dec 4 21:34:22 2017 UTC
2 IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CacheWeb\src\gov\va\med\cache\gui\shared InstanceVO.java Mon Dec 4 21:58:03 2017 UTC

78.2 Comparison summary

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

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

78.4 Active regular expressions

No regular expressions were active.

78.5 Comparison detail

  1   /**
  2    * 
  3    */
  4   package go v.va.med.c ache.gui.s hared;
  5  
  6   import gov .va.med.ca che.gui.cl ient.Utili ties;
  7  
  8   import jav a.io.Seria lizable;
  9   import jav a.util.Lis t;
  10   import jav a.util.Sor tedSet;
  11  
  12   import com .google.gw t.user.cli ent.rpc.Is Serializab le;
  13  
  14   /**
  15    * @author         
BECKEC
  16    *
  17    */
  18   public cla ss Instanc eVO
  19   extends Ab stractName dVO
  20   implements  Serializa ble, IsSer ializable
  21   {
  22           pr ivate stat ic final l ong        serialVers ionUID         = 1L;
  23           pr ivate Stri ng semanti cTypeName;
  24           pr ivate Cach eInstanceM etadata me tadata = n ull;
  25           pr ivate Cach eItemPath  path = nul l;
  26           
  27           pu blic Insta nceVO(){}
  28           
  29           pu blic Insta nceVO(Stri ng name, C acheInstan ceMetadata  metadata,  String se manticType Name)
  30           {
  31                    supe r(name);
  32                    this .metadata  = metadata ;
  33                    this .semanticT ypeName =  semanticTy peName;
  34           }
  35           
  36           pu blic Insta nceVO(Stri ng name, C acheInstan ceMetadata  metadata,  String se manticType Name, Cach eItemPath  path)
  37           {
  38                    supe r(name);
  39                    this .metadata  = metadata ;
  40                    this .semanticT ypeName =  semanticTy peName;
  41                    this .path = pa th;
  42           }
  43  
  44           pu blic Cache InstanceMe tadata get Metadata()  {
  45                    retu rn metadat a;
  46           }
  47  
  48           pu blic void  setMetadat a(CacheIns tanceMetad ata metada ta) {
  49                    this .metadata  = metadata ;
  50           }
  51  
  52           /* *
  53            *  Indicates  a semanti c to be ap plied to t his group,  the speci fics are d ependent o n the
  54            *  individua l caches,  the UI wil l use this  as a CSS  style name .
  55            *  @return
  56            * /
  57           pu blic Strin g getSeman ticTypeNam e() {retur n semantic TypeName;}
  58           pu blic void  setSemanti cTypeName( String sem anticTypeN ame) {this .semanticT ypeName =  semanticTy peName;}
  59           
  60           @O verride
  61           pu blic void  merge(Abst ractNamedV O other) 
  62           th rows Merge Exception
  63           {
  64                    if(o ther insta nceof Inst anceVO)
  65                    {
  66                             if(thi s.getMetad ata() == n ull && ((I nstanceVO) other).get Metadata()  != null)
  67                                      this.set Metadata(  ((Instance VO)other). getMetadat a() );
  68                             
  69                             super. merge(othe r);
  70                    }
  71                    else
  72                             throw  new MergeE xception(" InstanceVO  is unable  to merge  with '" +  other.toSt ring() + " '.");
  73           }
  74  
  75           
  76           @O verride
  77           pu blic Cache ItemPath g etPath()
  78           {
  79                    if ( path != nu ll)
  80                             return  path;
  81                    else  if( getPa rent() !=  null )
  82                    {
  83                             CacheI temPath pa rentPath =  getParent ().getPath ();
  84                             path =  parentPat h.createCh ildPath(th is.getName (), false) ;
  85                             return  path;
  86                    }
  87                    else
  88                    {
  89                             logger .error( "I nstanceVO. getParent( ) returns  null." );
  90                             return  null;
  91                    }
  92           }
  93           
  94           @O verride
  95           pu blic int g etChildCou nt(){retur n 0;}
  96           
  97           @O verride
  98           pu blic Abstr actNamedVO  childWith Name(Strin g name)
  99           {
  100                    retu rn null;
  101           }
  102           
  103           @O verride
  104           pu blic boole an removeC hild(Abstr actNamedVO  child){re turn false ;}
  105           
  106           @O verride
  107           pu blic Sorte dSet<Abstr actNamedVO > getChild ren()
  108           {
  109                    retu rn null;
  110           }
  111   }