GLS ShipIT  3.5.15
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 
43 @XmlAccessorType(XmlAccessType.FIELD)
44 @XmlType(name = "UnitItem", propOrder = {
45  "trackID",
46  "parcelNumber",
47  "partnerParcelNumber",
48  "shipmentReference",
49  "shipmentUnitReference",
50  "initialDate",
51  "status"
52 })
53 public class UnitItem {
54 
55  @XmlElement(name = "TrackID", required = true)
56  protected String trackID;
57  @XmlElement(name = "ParcelNumber")
58  protected String parcelNumber;
59  @XmlElement(name = "PartnerParcelNumber")
60  protected String partnerParcelNumber;
61  @XmlElement(name = "ShipmentReference")
62  protected List<String> shipmentReference;
63  @XmlElement(name = "ShipmentUnitReference")
64  protected List<String> shipmentUnitReference;
65  @XmlElement(name = "InitialDate", required = true, type = String.class)
66  @XmlJavaTypeAdapter(Adapter2 .class)
67  @XmlSchemaType(name = "dateTime")
68  protected Date initialDate;
69  @XmlElement(name = "Status", required = true)
70  protected String status;
71 
80  public String getTrackID() {
81  return trackID;
82  }
83 
92  public void setTrackID(String value) {
93  this.trackID = value;
94  }
95 
104  public String getParcelNumber() {
105  return parcelNumber;
106  }
107 
116  public void setParcelNumber(String value) {
117  this.parcelNumber = value;
118  }
119 
128  public String getPartnerParcelNumber() {
129  return partnerParcelNumber;
130  }
131 
140  public void setPartnerParcelNumber(String value) {
141  this.partnerParcelNumber = value;
142  }
143 
166  public List<String> getShipmentReference() {
167  if (shipmentReference == null) {
168  shipmentReference = new ArrayList<String>();
169  }
170  return this.shipmentReference;
171  }
172 
195  public List<String> getShipmentUnitReference() {
196  if (shipmentUnitReference == null) {
197  shipmentUnitReference = new ArrayList<String>();
198  }
199  return this.shipmentUnitReference;
200  }
201 
210  public Date getInitialDate() {
211  return initialDate;
212  }
213 
222  public void setInitialDate(Date value) {
223  this.initialDate = value;
224  }
225 
234  public String getStatus() {
235  return status;
236  }
237 
246  public void setStatus(String value) {
247  this.status = value;
248  }
249 
250 }