GLS ShipIT  2.8.11
GLS ShipIT - REST services
UnitDetail.java
Go to the documentation of this file.
1 
2 package eu.glsgroup.fpcs.datatypes.soap.v1.tracking;
3 
11 
12 import javax.xml.bind.annotation.XmlAccessType;
13 import javax.xml.bind.annotation.XmlAccessorType;
14 import javax.xml.bind.annotation.XmlElement;
15 import javax.xml.bind.annotation.XmlSchemaType;
16 import javax.xml.bind.annotation.XmlType;
17 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
18 import java.math.BigDecimal;
19 import java.util.ArrayList;
20 import java.util.Date;
21 import java.util.List;
22 
23 
56 @XmlAccessorType(XmlAccessType.FIELD)
57 @XmlType(name = "UnitDetail", propOrder = {
58  "trackID",
59  "shipmentReference",
60  "shipmentUnitReference",
61  "weight",
62  "deliveryDate",
63  "signature",
64  "product",
65  "consignee",
66  "shipper",
67  "service",
68  "shipmentService",
69  "history"
70 })
71 public class UnitDetail {
72 
73  @XmlElement(name = "TrackID", required = true)
74  protected String trackID;
75  @XmlElement(name = "ShipmentReference")
76  protected List<String> shipmentReference;
77  @XmlElement(name = "ShipmentUnitReference")
78  protected List<String> shipmentUnitReference;
79  @XmlElement(name = "Weight", required = true, type = String.class)
80  @XmlJavaTypeAdapter(Adapter3.class)
81  protected BigDecimal weight;
82  @XmlElement(name = "DeliveryDate", type = String.class)
83  @XmlJavaTypeAdapter(Adapter1.class)
84  @XmlSchemaType(name = "dateTime")
85  protected Date deliveryDate;
86  @XmlElement(name = "Signature")
87  protected String signature;
88  @XmlElement(name = "Product", required = true)
89  protected ProductType product;
90  @XmlElement(name = "Consignee", required = true)
91  protected Consignee consignee;
92  @XmlElement(name = "Shipper", required = true)
93  protected Shipper shipper;
94  @XmlElement(name = "Service")
95  protected List<UnitService> service;
96  @XmlElement(name = "ShipmentService")
97  protected List<ShipmentService> shipmentService;
98  @XmlElement(name = "History")
99  protected List<TUHistory> history;
100 
109  public String getTrackID() {
110  return trackID;
111  }
112 
121  public void setTrackID(String value) {
122  this.trackID = value;
123  }
124 
147  public List<String> getShipmentReference() {
148  if (shipmentReference == null) {
149  shipmentReference = new ArrayList<String>();
150  }
151  return this.shipmentReference;
152  }
153 
176  public List<String> getShipmentUnitReference() {
177  if (shipmentUnitReference == null) {
178  shipmentUnitReference = new ArrayList<String>();
179  }
180  return this.shipmentUnitReference;
181  }
182 
191  public BigDecimal getWeight() {
192  return weight;
193  }
194 
203  public void setWeight(BigDecimal value) {
204  this.weight = value;
205  }
206 
215  public Date getDeliveryDate() {
216  return deliveryDate;
217  }
218 
227  public void setDeliveryDate(Date value) {
228  this.deliveryDate = value;
229  }
230 
239  public String getSignature() {
240  return signature;
241  }
242 
251  public void setSignature(String value) {
252  this.signature = value;
253  }
254 
264  return product;
265  }
266 
275  public void setProduct(ProductType value) {
276  this.product = value;
277  }
278 
288  return consignee;
289  }
290 
299  public void setConsignee(Consignee value) {
300  this.consignee = value;
301  }
302 
311  public Shipper getShipper() {
312  return shipper;
313  }
314 
323  public void setShipper(Shipper value) {
324  this.shipper = value;
325  }
326 
349  public List<UnitService> getService() {
350  if (service == null) {
351  service = new ArrayList<UnitService>();
352  }
353  return this.service;
354  }
355 
378  public List<ShipmentService> getShipmentService() {
379  if (shipmentService == null) {
380  shipmentService = new ArrayList<ShipmentService>();
381  }
382  return this.shipmentService;
383  }
384 
407  public List<TUHistory> getHistory() {
408  if (history == null) {
409  history = new ArrayList<TUHistory>();
410  }
411  return this.history;
412  }
413 
414 }