Produced by Araxis Merge on 3/8/2018 10:11:21 AM Eastern 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 | PRE_PPS-N_v3.0.1.zip\PS_PPS_common\src\main\java\gov\va\med\pharmacy\peps\common\vo | DrugSeverityVo.java | Fri Jan 12 15:43:24 2018 UTC |
2 | PRE_PPS-N_v3.0.1.zip\PS_PPS_common\src\main\java\gov\va\med\pharmacy\peps\common\vo | DrugSeverityVo.java | Tue Mar 6 19:09:10 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 332 |
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 | package go v.va.med.p harmacy.pe ps.common. vo; | |
2 | ||
3 | import jav a.lang.ref lect.Field ; | |
4 | import jav a.util.Col lection; | |
5 | import jav a.util.Set ; | |
6 | ||
7 | ||
8 | /** | |
9 | * @author DNS | |
10 | * | |
11 | * Data r epresentin g a drug s everity | |
12 | * | |
13 | */ | |
14 | public cla ss DrugSev erityVo ex tends Mana gedDataVo { | |
15 | ||
16 | privat e static f inal long serialVers ionUID = 1 L; | |
17 | ||
18 | privat e String s everityNam e; // name of severi ty | |
19 | ||
20 | privat e String s everityId; // id of severity. | |
21 | ||
22 | ||
23 | /** | |
24 | * @re turn the s everityNam e | |
25 | */ | |
26 | public String ge tSeverityN ame() { | |
27 | ||
28 | re turn sever ityName; | |
29 | } | |
30 | ||
31 | ||
32 | /** | |
33 | * @pa ram severi tyName the severityN ame to set | |
34 | */ | |
35 | public void setS everityNam e(String s everityNam e) { | |
36 | ||
37 | th is.severit yName = se verityName ; | |
38 | } | |
39 | ||
40 | ||
41 | /** | |
42 | * @re turn the s everityId | |
43 | */ | |
44 | public String ge tSeverityI d() { | |
45 | ||
46 | re turn sever ityId; | |
47 | } | |
48 | ||
49 | ||
50 | /** | |
51 | * @pa ram severi tyId the s everityId to set | |
52 | */ | |
53 | public void setS everityId( String sev erityId) { | |
54 | ||
55 | th is.severit yId = seve rityId; | |
56 | } | |
57 | ||
58 | ||
59 | ||
60 | /** | |
61 | * Ret urns true if the dom ain is sta ndardized for DrugSe verityVo | |
62 | * | |
63 | * @re turn boole an | |
64 | */ | |
65 | @Overr ide | |
66 | public boolean i sStandardi zed() { | |
67 | ||
68 | re turn true; | |
69 | } | |
70 | ||
71 | /** | |
72 | * Ret urns true if the dom ain is an NDF domain for DrugS everityVo | |
73 | * | |
74 | * @re turn boole an | |
75 | */ | |
76 | @Overr ide | |
77 | public boolean i sNdf() { | |
78 | ||
79 | re turn false ; | |
80 | } | |
81 | ||
82 | @Overr ide | |
83 | public DomainGro up getDoma inGroup() { | |
84 | ||
85 | re turn Domai nGroup.GRO UP_7; | |
86 | } | |
87 | ||
88 | ||
89 | /** | |
90 | * Ret urns true if this is a local o nly domain for DrugS everityVo | |
91 | * | |
92 | * @re turn boole an | |
93 | */ | |
94 | @Overr ide | |
95 | public boolean i sLocalOnly Data() { | |
96 | ||
97 | re turn false ; | |
98 | } | |
99 | ||
100 | ||
101 | /** | |
102 | * Ret urns the e ntity for the manage d item | |
103 | * | |
104 | * @re turn Entit yType | |
105 | */ | |
106 | public EntityTyp e getEntit yType() { | |
107 | ||
108 | re turn Entit yType.DRUG _SEVERITY; | |
109 | } | |
110 | ||
111 | ||
112 | /** | |
113 | * Lis t all disa bled field s for this ValueObje ct, with t he pre-con dition tha t the curr ent instan ce is not a new one, nor | |
114 | * a r ead-only o ne for Dru gSeverityV o. | |
115 | * | |
116 | * @pa ram enviro nment the current {@ link Envir onment} | |
117 | * @pa ram roles Collection of {@link Role} ins tances for the curre nt user | |
118 | * @re turn Set<F ieldKey> A ll disable d fields f or this ob ject. | |
119 | */ | |
120 | @Suppr essWarning s("rawtype s") | |
121 | protec ted Set<Fi eldKey> ha ndleListDi sabledFiel ds(Environ ment envir onment, Co llection<R ole> roles ) { | |
122 | ||
123 | Se t<FieldKey > fields = super.han dleListDis abledField s(environm ent, roles ); | |
124 | ||
125 | re turn field s; | |
126 | } | |
127 | ||
128 | ||
129 | /** | |
130 | * Use d to remov e the drop down fiel d when add ing a new severity. | |
131 | * | |
132 | * @re turn colle ction | |
133 | */ | |
134 | @Suppr essWarning s("rawtype s") | |
135 | public Collectio n<FieldKey > listAllS everityFie lds() { | |
136 | ||
137 | Co llection<F ieldKey> f ields = li stAllWizar dFields(); | |
138 | fi elds.add(F ieldKey.SE VERITY); | |
139 | re turn field s; | |
140 | } | |
141 | ||
142 | /** | |
143 | * Ret urns field s used in the Add se verity wiz ard. | |
144 | * | |
145 | * @re turn Colle ction | |
146 | */ | |
147 | @Suppr essWarning s("rawtype s") | |
148 | public Collectio n<FieldKey > getAllSe verityFiel ds() { | |
149 | ||
150 | re turn listA llSeverity Fields(); | |
151 | } | |
152 | ||
153 | ||
154 | @Overr ide | |
155 | public <T> T ref lectFieldV alue(Field field) th rows Illeg alArgument Exception, IllegalAc cessExcept ion { | |
156 | re turn (T) f ield.get(t his); | |
157 | } | |
158 | ||
159 | ||
160 | @Overr ide | |
161 | public void setA ttributeBy Field(Fiel d field, O bject fiel dValue) th rows Illeg alArgument Exception, IllegalAc cessExcept ion { | |
162 | fi eld.set(th is, fieldV alue); | |
163 | } | |
164 | ||
165 | ||
166 | ||
167 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.