Produced by Araxis Merge on 3/25/2019 8:58:02 AM Central 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\AraxisMergeCompare\Pri_un\IMAG_Source\VISA\Java\ImagingExchangeBaseWebProxy\main\src\java\gov\va\med\imaging\proxy\ids | IDSService.java | Mon Mar 18 20:39:09 2019 UTC |
2 | C:\AraxisMergeCompare\Pri_re\IMAG_Source\VISA\Java\ImagingExchangeBaseWebProxy\main\src\java\gov\va\med\imaging\proxy\ids | IDSService.java | Tue Mar 19 12:03:48 2019 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 272 |
Changed | 2 | 4 |
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 | Package: MAG - Vis tA Imaging | |
4 | WARNING: Per VHA D irective 2 004-038, t his routin e should n ot be modi fied. | |
5 | Date Cre ated: Feb 29, 2008 | |
6 | Site Nam e: Washin gton OI Fi eld Office , Silver S pring, MD | |
7 | Developer: DN S WERFEJ | |
8 | Descript ion: | |
9 | ||
10 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
11 | ;; Property of the US Government . | |
12 | ;; No permis sion to co py or redi stribute t his softwa re is give n. | |
13 | ;; Use of un released v ersions of this soft ware requi res the us er | |
14 | ;; to execu te a writt en test ag reement wi th the Vis tA Imaging | |
15 | ;; Developm ent Office of the De partment o f Veterans Affairs, | |
16 | ;; telephon e (301) 73 4-0100. | |
17 | ;; | |
18 | ;; The Food and Drug A dministrat ion classi fies this software a s | |
19 | ;; a Class I I medical device. A s such, it may not b e changed | |
20 | ;; in any wa y. Modifi cations to this soft ware may r esult in a n | |
21 | ;; adulterat ed medical device un der 21CFR8 20, the us e of which | |
22 | ;; is consid ered to be a violati on of US F ederal Sta tutes. | |
23 | ;; +-------- ---------- ---------- ---------- ---------- ---------- ---------- + | |
24 | ||
25 | */ | |
26 | package go v.va.med.i maging.pro xy.ids; | |
27 | ||
28 | import jav a.util.Arr ayList; | |
29 | import jav a.util.Lis t; | |
30 | ||
31 | /** | |
32 | * Represe nts a resp onse from the IDS we b app | |
33 | * | |
34 | * @author DN S WERFEJ | |
35 | * | |
36 | */ | |
37 | public cla ss IDSServ ice | |
38 | implements Comparabl e<IDSServi ce> | |
39 | { | |
40 | pr ivate Stri ng version ; | |
41 | pr ivate Stri ng applica tionType; | |
42 | pr ivate Stri ng applica tionPath; | |
43 | pr ivate List <IDSOperat ion> opera tions = ne w ArrayLis t<IDSOpera tion>(); | |
44 | ||
45 | pu blic IDSSe rvice() | |
46 | { | |
47 | supe r(); | |
48 | vers ion = ""; | |
49 | appl icationTyp e = applic ationPath = ""; | |
50 | } | |
51 | ||
52 | pu blic IDSSe rvice(Stri ng applica tionType, String ver sion, | |
53 | String applicati onPath) { | |
54 | supe r(); | |
55 | this .version = version; | |
56 | this .applicati onType = a pplication Type; | |
57 | this .applicati onPath = a pplication Path; | |
58 | } | |
59 | ||
60 | pu blic void addOperati on(IDSOper ation oper ation) | |
61 | { | |
62 | oper ations.add (operation ); | |
63 | } | |
64 | ||
65 | pu blic List< IDSOperati on> getOpe rations() { | |
66 | retu rn operati ons; | |
67 | } | |
68 | ||
69 | pu blic Strin g getVersi on() { | |
70 | retu rn version ; | |
71 | } | |
72 | ||
73 | pu blic void setVersion (String ve rsion) { | |
74 | this .version = version; | |
75 | } | |
76 | ||
77 | pu blic Strin g getAppli cationPath () { | |
78 | retu rn applica tionPath; | |
79 | } | |
80 | ||
81 | pu blic void setApplica tionPath(S tring appl icationPat h) { | |
82 | this .applicati onPath = a pplication Path; | |
83 | } | |
84 | ||
85 | pu blic Strin g getAppli cationType () { | |
86 | retu rn applica tionType; | |
87 | } | |
88 | ||
89 | pu blic void setApplica tionType(S tring appl icationTyp e) { | |
90 | this .applicati onType = a pplication Type; | |
91 | } | |
92 | ||
93 | pu blic IDSOp eration ge tOperation ByType(Str ing operat ionType) | |
94 | { | |
95 | for( IDSOperati on operati on : opera tions) | |
96 | { | |
97 | if(ope rationType .equals(op eration.ge tOperation Type())) | |
98 | { | |
99 | return o peration; | |
100 | } | |
101 | } | |
102 | retu rn null; | |
103 | } | |
104 | ||
105 | ||
106 | @O verride | |
107 | pu blic int c ompareTo(I DSService that) { | |
108 | int diff = thi s.applicat ionPath.co mpareTo(th at.applica tionPath); | |
109 | if(d iff != 0) | |
110 | return diff; | |
111 | try | |
112 | { | |
113 | double thisV = D ouble.pars eDouble(th is.version ); | |
114 | double thatV = D ouble.pars eDouble(th at.version ); | |
115 | if(thi sV < thatV ) | |
116 | return - 1; | |
117 | if(thi sV > thatV ) | |
118 | return 1 ; | |
119 | return 0; | |
120 | } | |
121 | catc h(Exceptio n ex) {} | |
122 | retu rn this.ve rsion.comp areTo(that .version); | |
123 | } | |
124 | ||
125 | @O verride | |
126 | pu blic Strin g toString () | |
127 | { | |
128 | Stri ngBuilder sb = new S tringBuild er(); | |
129 | sb.a ppend("App lication T ype: " + a pplication Type + " [ " + versio n + "]\n") ; | |
130 | sb.a ppend("App lication P ath: " + a pplication Path + "\n "); | |
131 | for( IDSOperati on operati on : opera tions) | |
132 | { | |
133 | sb.app end("\t" + operation + "\n"); | |
134 | } | |
135 | retu rn sb.toSt ring(); | |
136 | } | |
137 | ||
138 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.