GLS ShipIT  2.8.11
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 
5 
6 import javax.xml.bind.annotation.XmlAccessType;
7 import javax.xml.bind.annotation.XmlAccessorType;
8 import javax.xml.bind.annotation.XmlElement;
9 import javax.xml.bind.annotation.XmlSchemaType;
10 import javax.xml.bind.annotation.XmlType;
11 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
12 import java.util.ArrayList;
13 import java.util.Date;
14 import java.util.List;
15 
16 
40 @XmlAccessorType(XmlAccessType.FIELD)
41 @XmlType(name = "UnitItem", propOrder = {
42  "trackID",
43  "shipmentReference",
44  "shipmentUnitReference",
45  "initialDate",
46  "status"
47 })
48 public class UnitItem {
49 
50  @XmlElement(name = "TrackID", required = true)
51  protected String trackID;
52  @XmlElement(name = "ShipmentReference")
53  protected List<String> shipmentReference;
54  @XmlElement(name = "ShipmentUnitReference")
55  protected List<String> shipmentUnitReference;
56  @XmlElement(name = "InitialDate", required = true, type = String.class)
57  @XmlJavaTypeAdapter(Adapter1.class)
58  @XmlSchemaType(name = "dateTime")
59  protected Date initialDate;
60  @XmlElement(name = "Status", required = true)
61  protected String status;
62 
71  public String getTrackID() {
72  return trackID;
73  }
74 
83  public void setTrackID(String value) {
84  this.trackID = value;
85  }
86 
109  public List<String> getShipmentReference() {
110  if (shipmentReference == null) {
111  shipmentReference = new ArrayList<String>();
112  }
113  return this.shipmentReference;
114  }
115 
138  public List<String> getShipmentUnitReference() {
139  if (shipmentUnitReference == null) {
140  shipmentUnitReference = new ArrayList<String>();
141  }
142  return this.shipmentUnitReference;
143  }
144 
153  public Date getInitialDate() {
154  return initialDate;
155  }
156 
165  public void setInitialDate(Date value) {
166  this.initialDate = value;
167  }
168 
177  public String getStatus() {
178  return status;
179  }
180 
189  public void setStatus(String value) {
190  this.status = value;
191  }
192 
193 }