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.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CacheWeb\src\gov\va\med\cache\gui\shared | RegionVO.java | Mon Dec 4 21:34:24 2017 UTC |
| 2 | IV-eHMP_CIF.zip\IMAG_Source\VISA\Java\CacheWeb\src\gov\va\med\cache\gui\shared | RegionVO.java | Mon Dec 4 21:58:04 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 220 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| 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 |
No regular expressions were active.
| 1 | /** | |
| 2 | * | |
| 3 | */ | |
| 4 | package go v.va.med.c ache.gui.s hared; | |
| 5 | ||
| 6 | import jav a.io.Seria lizable; | |
| 7 | import jav a.util.Sor tedSet; | |
| 8 | ||
| 9 | import com .google.gw t.user.cli ent.rpc.Is Serializab le; | |
| 10 | ||
| 11 | /** | |
| 12 | * @author
|
|
| 13 | * | |
| 14 | */ | |
| 15 | public cla ss RegionV O | |
| 16 | extends Ab stractGrou pParent | |
| 17 | implements Serializa ble, IsSer ializable | |
| 18 | { | |
| 19 | pr ivate stat ic final l ong serialVers ionUID = 1L; | |
| 20 | pr ivate Cach eRegionMet adata meta data = nul l; | |
| 21 | pr ivate Cach eItemPath path = nul l; | |
| 22 | ||
| 23 | pu blic Regio nVO(){} | |
| 24 | ||
| 25 | /* * | |
| 26 | * | |
| 27 | * @param na me - must NOT be nul l | |
| 28 | * @param me tadata - m ay be null | |
| 29 | * / | |
| 30 | pu blic Regio nVO(String name, Cac heRegionMe tadata met adata) | |
| 31 | { | |
| 32 | supe r(name); | |
| 33 | this .metadata = metadata ; | |
| 34 | } | |
| 35 | ||
| 36 | /* * | |
| 37 | * | |
| 38 | * @param na me - must NOT be nul l | |
| 39 | * @param me tadata - m ay be null | |
| 40 | * @param pa th - may b e null | |
| 41 | * / | |
| 42 | pu blic Regio nVO(String name, Cac heRegionMe tadata met adata, Cac heItemPath path) | |
| 43 | { | |
| 44 | supe r(name); | |
| 45 | this .metadata = metadata ; | |
| 46 | this .path = pa th; | |
| 47 | } | |
| 48 | ||
| 49 | pu blic Cache RegionMeta data getMe tadata() { | |
| 50 | retu rn metadat a; | |
| 51 | } | |
| 52 | ||
| 53 | pu blic void setMetadat a(CacheReg ionMetadat a metadata ) { | |
| 54 | this .metadata = metadata ; | |
| 55 | } | |
| 56 | ||
| 57 | @O verride | |
| 58 | pu blic void merge(Abst ractNamedV O other) | |
| 59 | th rows Merge Exception | |
| 60 | { | |
| 61 | if(o ther insta nceof Regi onVO) | |
| 62 | { | |
| 63 | super. merge(othe r); | |
| 64 | if(thi s.getMetad ata() == n ull && ((R egionVO)ot her).getMe tadata() ! = null) | |
| 65 | this.set Metadata(( (RegionVO) other).get Metadata() ); | |
| 66 | } | |
| 67 | else | |
| 68 | { | |
| 69 | String msg = "Re gionVO is unable to merge '" + other.toS tring() + "'"; | |
| 70 | logger .error(msg ); | |
| 71 | throw new MergeE xception(m sg); | |
| 72 | } | |
| 73 | } | |
| 74 | ||
| 75 | @O verride | |
| 76 | pu blic Cache ItemPath g etPath() | |
| 77 | { | |
| 78 | if ( path != nu ll) | |
| 79 | return path; | |
| 80 | else if( getPa rent() != null ) | |
| 81 | { | |
| 82 | CacheI temPath pa rentPath = getParent ().getPath (); | |
| 83 | path = parentPat h.createCh ildPath(th is.getName (), false) ; | |
| 84 | return path; | |
| 85 | } | |
| 86 | else | |
| 87 | { | |
| 88 | logger .error( "R egionVO.ge tParent() returns nu ll." ); | |
| 89 | return null; | |
| 90 | } | |
| 91 | } | |
| 92 | ||
| 93 | @O verride | |
| 94 | pu blic int g etChildCou nt(){retur n getGroup Count();} | |
| 95 | ||
| 96 | @O verride | |
| 97 | pu blic Abstr actNamedVO childWith Name(Strin g name) | |
| 98 | { | |
| 99 | retu rn this.se archChildC ollection( getGroups( ), name); | |
| 100 | } | |
| 101 | ||
| 102 | @S uppressWar nings("unc hecked") | |
| 103 | @O verride | |
| 104 | pu blic Sorte dSet<Group VO> getChi ldren() | |
| 105 | { | |
| 106 | retu rn getGrou ps(); | |
| 107 | } | |
| 108 | ||
| 109 | @O verride | |
| 110 | pu blic boole an removeC hild(Abstr actNamedVO child){re turn remov e((GroupVO )child);} | |
| 111 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.