GLS ShipIT  5.3.4
GLS ShipIT - REST services
tracking/UnitItem.java
Go to the documentation of this file.
1 
2 package eu.glsgroup.fpcs.datatypes.soap.v1.tracking;
3 
4 import java.util.ArrayList;
5 import java.util.Date;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlSchemaType;
11 import javax.xml.bind.annotation.XmlType;
12 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
14 
15 
44 @XmlAccessorType(XmlAccessType.FIELD)
45 @XmlType(name = "UnitItem", propOrder = {
46  "trackID",
47  "parcelNumber",
48  "partnerParcelNumber",
49  "globalShipmentUnitId",
50  "shipmentReference",
51  "shipmentUnitReference",
52  "initialDate",
53  "status"
54 })
55 public class UnitItem {
56 
57  @XmlElement(name = "TrackID", required = true)
58  protected String trackID;
59  @XmlElement(name = "ParcelNumber")
60  protected String parcelNumber;
61  @XmlElement(name = "PartnerParcelNumber")
62  protected String partnerParcelNumber;
63  @XmlElement(name = "GlobalShipmentUnitId")
64  protected String globalShipmentUnitId;
65  @XmlElement(name = "ShipmentReference")
66  protected List<String> shipmentReference;
67  @XmlElement(name = "ShipmentUnitReference")
68  protected List<String> shipmentUnitReference;
69  @XmlElement(name = "InitialDate", required = true, type = String.class)
70  @XmlJavaTypeAdapter(Adapter2 .class)
71  @XmlSchemaType(name = "dateTime")
72  protected Date initialDate;
73  @XmlElement(name = "Status", required = true)
74  protected String status;
75 
84  public String getTrackID() {
85  return trackID;
86  }
87 
96  public void setTrackID(String value) {
97  this.trackID = value;
98  }
99 
108  public String getParcelNumber() {
109  return parcelNumber;
110  }
111 
120  public void setParcelNumber(String value) {
121  this.parcelNumber = value;
122  }
123 
132  public String getPartnerParcelNumber() {
133  return partnerParcelNumber;
134  }
135 
144  public void setPartnerParcelNumber(String value) {
145  this.partnerParcelNumber = value;
146  }
147 
156  public String getGlobalShipmentUnitId() {
157  return globalShipmentUnitId;
158  }
159 
168  public void setGlobalShipmentUnitId(String value) {
169  this.globalShipmentUnitId = value;
170  }
171 
194  public List<String> getShipmentReference() {
195  if (shipmentReference == null) {
196  shipmentReference = new ArrayList<String>();
197  }
198  return this.shipmentReference;
199  }
200 
223  public List<String> getShipmentUnitReference() {
224  if (shipmentUnitReference == null) {
225  shipmentUnitReference = new ArrayList<String>();
226  }
227  return this.shipmentUnitReference;
228  }
229 
238  public Date getInitialDate() {
239  return initialDate;
240  }
241 
250  public void setInitialDate(Date value) {
251  this.initialDate = value;
252  }
253 
262  public String getStatus() {
263  return status;
264  }
265 
274  public void setStatus(String value) {
275  this.status = value;
276  }
277 
278 }