blob: 0c9ab9a2f6d4aa4b8ddb7cb1a97667b97f99f4c7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
|
/*******************************************************************************
* Copyright (c) 2013 Boeing.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Boeing - initial API and implementation
*******************************************************************************/
package org.eclipse.osee.disposition.model;
import java.util.Date;
import javax.xml.bind.annotation.XmlRootElement;
import org.eclipse.osee.framework.jdk.core.type.Identity;
import org.json.JSONArray;
import org.json.JSONObject;
/**
* @author Angel Avila
*/
@XmlRootElement(name = "DispoItemData")
public class DispoItemData implements DispoItem {
private String guid;
private String name;
private String assignee;
private Date creationDate;
private Date lastUpdate;
private String status;
private String version;
private JSONObject discrepanciesList;
private JSONArray annotationsList;
private String totalPoints;
private Boolean needsRerun;
private String machine;
private String category;
private String elapsedTime;
private Boolean aborted;
private String itemNotes;
public DispoItemData() {
}
@Override
public String getName() {
return name;
}
@Override
public String getGuid() {
return guid;
}
@Override
public String getAssignee() {
return assignee;
}
@Override
public Date getCreationDate() {
return creationDate;
}
@Override
public Date getLastUpdate() {
return lastUpdate;
}
@Override
public String getStatus() {
return status;
}
@Override
public String getVersion() {
return version;
}
@Override
public JSONObject getDiscrepanciesList() {
return discrepanciesList;
}
@Override
public JSONArray getAnnotationsList() {
return annotationsList;
}
@Override
public String getTotalPoints() {
return totalPoints;
}
@Override
public Boolean getNeedsRerun() {
return needsRerun;
}
@Override
public String getMachine() {
return machine;
}
@Override
public String getCategory() {
return category;
}
@Override
public String getElapsedTime() {
return elapsedTime;
}
@Override
public Boolean getAborted() {
return aborted;
}
@Override
public String getItemNotes() {
return itemNotes;
}
public void setName(String name) {
this.name = name;
}
public void setDiscrepanciesList(JSONObject discrepanciesList) {
this.discrepanciesList = discrepanciesList;
}
public void setAnnotationsList(JSONArray annotationsList) {
this.annotationsList = annotationsList;
}
public void setStatus(String status) {
this.status = status;
}
public void setVersion(String version) {
this.version = version;
}
public void setLastUpdate(Date lastUpdate) {
this.lastUpdate = lastUpdate;
}
public void setCreationDate(Date creationDate) {
this.creationDate = creationDate;
}
public void setGuid(String guid) {
this.guid = guid;
}
public void setAssignee(String assignee) {
this.assignee = assignee;
}
public void setTotalPoints(String totalPoints) {
this.totalPoints = totalPoints;
}
public void setNeedsRerun(boolean needsRerun) {
this.needsRerun = needsRerun;
}
public void setMachine(String machine) {
this.machine = machine;
}
public void setCategory(String category) {
this.category = category;
}
public void setElapsedTime(String elapsedTime) {
this.elapsedTime = elapsedTime;
}
public void setAborted(Boolean aborted) {
this.aborted = aborted;
}
public void setItemNotes(String itemNotes) {
this.itemNotes = itemNotes;
}
@Override
public boolean matches(Identity<?>... identities) {
for (Identity<?> identity : identities) {
if (equals(identity)) {
return true;
}
}
return false;
}
}
|