blob: 389d66f5cab6a3bfd479329a42db30d4d1b0ffed (
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
|
/*******************************************************************************
* 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;
/**
* @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 JSONArray discrepanciesList;
private JSONArray annotationsList;
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 JSONArray getDiscrepanciesList() {
return discrepanciesList;
}
@Override
public JSONArray getAnnotationsList() {
return annotationsList;
}
public void setName(String name) {
this.name = name;
}
public void setDiscrepanciesList(JSONArray discrepanciesList) {
this.discrepanciesList = discrepanciesList;
}
public void setAnnotationsList(JSONArray annotationsList) {
this.annotationsList = annotationsList;
}
public void setStatus(String status) {
this.status = status;
}
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;
}
@Override
public boolean matches(Identity<?>... identities) {
for (Identity<?> identity : identities) {
if (equals(identity)) {
return true;
}
}
return false;
}
}
|