|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+package se.citerus.dddsample.reporting.api;
|
|
|
2
|
+
|
|
|
3
|
+import org.apache.commons.lang.builder.EqualsBuilder;
|
|
|
4
|
+import org.apache.commons.lang.builder.HashCodeBuilder;
|
|
|
5
|
+import org.apache.commons.lang.builder.ToStringBuilder;
|
|
|
6
|
+import org.apache.commons.lang.builder.ToStringStyle;
|
|
|
7
|
+
|
|
|
8
|
+import javax.xml.bind.annotation.XmlRootElement;
|
|
|
9
|
+
|
|
|
10
|
+@XmlRootElement
|
|
|
11
|
+public class CargoDetails {
|
|
|
12
|
+
|
|
|
13
|
+ private String trackingId;
|
|
|
14
|
+ private String receivedIn;
|
|
|
15
|
+ private String finalDestination;
|
|
|
16
|
+ private String arrivalDeadline;
|
|
|
17
|
+ private String eta;
|
|
|
18
|
+ private String currentStatus;
|
|
|
19
|
+ private String currentVoyage;
|
|
|
20
|
+ private String currentLocation;
|
|
|
21
|
+ private String lastUpdatedOn;
|
|
|
22
|
+
|
|
|
23
|
+ public String getTrackingId() {
|
|
|
24
|
+ return trackingId;
|
|
|
25
|
+ }
|
|
|
26
|
+
|
|
|
27
|
+ public void setTrackingId(String trackingId) {
|
|
|
28
|
+ this.trackingId = trackingId;
|
|
|
29
|
+ }
|
|
|
30
|
+
|
|
|
31
|
+ public String getReceivedIn() {
|
|
|
32
|
+ return receivedIn;
|
|
|
33
|
+ }
|
|
|
34
|
+
|
|
|
35
|
+ public void setReceivedIn(String receivedIn) {
|
|
|
36
|
+ this.receivedIn = receivedIn;
|
|
|
37
|
+ }
|
|
|
38
|
+
|
|
|
39
|
+ public String getFinalDestination() {
|
|
|
40
|
+ return finalDestination;
|
|
|
41
|
+ }
|
|
|
42
|
+
|
|
|
43
|
+ public void setFinalDestination(String finalDestination) {
|
|
|
44
|
+ this.finalDestination = finalDestination;
|
|
|
45
|
+ }
|
|
|
46
|
+
|
|
|
47
|
+ public String getArrivalDeadline() {
|
|
|
48
|
+ return arrivalDeadline;
|
|
|
49
|
+ }
|
|
|
50
|
+
|
|
|
51
|
+ public void setArrivalDeadline(String arrivalDeadline) {
|
|
|
52
|
+ this.arrivalDeadline = arrivalDeadline;
|
|
|
53
|
+ }
|
|
|
54
|
+
|
|
|
55
|
+ public String getEta() {
|
|
|
56
|
+ return eta;
|
|
|
57
|
+ }
|
|
|
58
|
+
|
|
|
59
|
+ public void setEta(String eta) {
|
|
|
60
|
+ this.eta = eta;
|
|
|
61
|
+ }
|
|
|
62
|
+
|
|
|
63
|
+ public String getCurrentStatus() {
|
|
|
64
|
+ return currentStatus;
|
|
|
65
|
+ }
|
|
|
66
|
+
|
|
|
67
|
+ public void setCurrentStatus(String currentStatus) {
|
|
|
68
|
+ this.currentStatus = currentStatus;
|
|
|
69
|
+ }
|
|
|
70
|
+
|
|
|
71
|
+ public String getCurrentVoyage() {
|
|
|
72
|
+ return currentVoyage;
|
|
|
73
|
+ }
|
|
|
74
|
+
|
|
|
75
|
+ public void setCurrentVoyage(String currentVoyage) {
|
|
|
76
|
+ this.currentVoyage = currentVoyage;
|
|
|
77
|
+ }
|
|
|
78
|
+
|
|
|
79
|
+ public String getCurrentLocation() {
|
|
|
80
|
+ return currentLocation;
|
|
|
81
|
+ }
|
|
|
82
|
+
|
|
|
83
|
+ public void setCurrentLocation(String currentLocation) {
|
|
|
84
|
+ this.currentLocation = currentLocation;
|
|
|
85
|
+ }
|
|
|
86
|
+
|
|
|
87
|
+ public String getLastUpdatedOn() {
|
|
|
88
|
+ return lastUpdatedOn;
|
|
|
89
|
+ }
|
|
|
90
|
+
|
|
|
91
|
+ public void setLastUpdatedOn(String lastUpdatedOn) {
|
|
|
92
|
+ this.lastUpdatedOn = lastUpdatedOn;
|
|
|
93
|
+ }
|
|
|
94
|
+
|
|
|
95
|
+ @Override
|
|
|
96
|
+ public boolean equals(Object that) {
|
|
|
97
|
+ return EqualsBuilder.reflectionEquals(this, that);
|
|
|
98
|
+ }
|
|
|
99
|
+
|
|
|
100
|
+ @Override
|
|
|
101
|
+ public int hashCode() {
|
|
|
102
|
+ return HashCodeBuilder.reflectionHashCode(this);
|
|
|
103
|
+ }
|
|
|
104
|
+
|
|
|
105
|
+ @Override
|
|
|
106
|
+ public String toString() {
|
|
|
107
|
+ return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
|
|
|
108
|
+ }
|
|
|
109
|
+}
|