GLS ShipIT
GLS ShipIT - REST services
 All Classes Namespaces Files Functions Variables Enumerator Pages
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;
13 import org.w3._2001.xmlschema.Adapter1;
14 
15 
41 @XmlAccessorType(XmlAccessType.FIELD)
42 @XmlType(name = "UnitItem", propOrder = {
43  "trackID",
44  "shipmentReference",
45  "shipmentUnitReference",
46  "initialDate",
47  "status"
48 })
49 public class UnitItem {
50 
51  @XmlElement(name = "TrackID", required = true)
52  protected String trackID;
53  @XmlElement(name = "ShipmentReference")
54  protected List<String> shipmentReference;
55  @XmlElement(name = "ShipmentUnitReference")
56  protected List<String> shipmentUnitReference;
57  @XmlElement(name = "InitialDate", required = true, type = String.class)
58  @XmlJavaTypeAdapter(Adapter1 .class)
59  @XmlSchemaType(name = "dateTime")
60  protected Date initialDate;
61  @XmlElement(name = "Status", required = true)
62  protected String status;
63 
72  public String getTrackID() {
73  return trackID;
74  }
75 
84  public void setTrackID(String value) {
85  this.trackID = value;
86  }
87 
110  public List<String> getShipmentReference() {
111  if (shipmentReference == null) {
112  shipmentReference = new ArrayList<String>();
113  }
114  return this.shipmentReference;
115  }
116 
139  public List<String> getShipmentUnitReference() {
140  if (shipmentUnitReference == null) {
141  shipmentUnitReference = new ArrayList<String>();
142  }
143  return this.shipmentUnitReference;
144  }
145 
154  public Date getInitialDate() {
155  return initialDate;
156  }
157 
166  public void setInitialDate(Date value) {
167  this.initialDate = value;
168  }
169 
178  public String getStatus() {
179  return status;
180  }
181 
190  public void setStatus(String value) {
191  this.status = value;
192  }
193 
194 }