GLS ShipIT  5.3.4
GLS ShipIT - REST services
UnitDetail.java
Go to the documentation of this file.
1 
2 package eu.glsgroup.fpcs.datatypes.soap.v1.tracking;
3 
4 import java.math.BigDecimal;
5 import java.util.ArrayList;
6 import java.util.Date;
7 import java.util.List;
8 import javax.xml.bind.annotation.XmlAccessType;
9 import javax.xml.bind.annotation.XmlAccessorType;
10 import javax.xml.bind.annotation.XmlElement;
11 import javax.xml.bind.annotation.XmlSchemaType;
12 import javax.xml.bind.annotation.XmlType;
13 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
21 
22 
56 @XmlAccessorType(XmlAccessType.FIELD)
57 @XmlType(name = "UnitDetail", propOrder = {
58  "trackID",
59  "shipmentReference",
60  "shipmentUnitReference",
61  "globalShipmentUnitId",
62  "weight",
63  "deliveryDate",
64  "signature",
65  "product",
66  "consignee",
67  "shipper",
68  "service",
69  "shipmentService",
70  "history"
71 })
72 public class UnitDetail {
73 
74  @XmlElement(name = "TrackID", required = true)
75  protected String trackID;
76  @XmlElement(name = "ShipmentReference")
77  protected List<String> shipmentReference;
78  @XmlElement(name = "ShipmentUnitReference")
79  protected List<String> shipmentUnitReference;
80  @XmlElement(name = "GlobalShipmentUnitId")
81  protected String globalShipmentUnitId;
82  @XmlElement(name = "Weight", required = true, type = String.class)
83  @XmlJavaTypeAdapter(Adapter1 .class)
84  @XmlSchemaType(name = "decimal")
85  protected BigDecimal weight;
86  @XmlElement(name = "DeliveryDate", type = String.class)
87  @XmlJavaTypeAdapter(Adapter2 .class)
88  @XmlSchemaType(name = "dateTime")
89  protected Date deliveryDate;
90  @XmlElement(name = "Signature")
91  protected String signature;
92  @XmlElement(name = "Product", required = true)
93  @XmlSchemaType(name = "string")
94  protected ProductType product;
95  @XmlElement(name = "Consignee", required = true)
96  protected Consignee consignee;
97  @XmlElement(name = "Shipper", required = true)
98  protected Shipper shipper;
99  @XmlElement(name = "Service")
100  protected List<UnitService> service;
101  @XmlElement(name = "ShipmentService")
102  protected List<ShipmentService> shipmentService;
103  @XmlElement(name = "History")
104  protected List<TUHistory> history;
105 
114  public String getTrackID() {
115  return trackID;
116  }
117 
126  public void setTrackID(String value) {
127  this.trackID = value;
128  }
129 
152  public List<String> getShipmentReference() {
153  if (shipmentReference == null) {
154  shipmentReference = new ArrayList<String>();
155  }
156  return this.shipmentReference;
157  }
158 
181  public List<String> getShipmentUnitReference() {
182  if (shipmentUnitReference == null) {
183  shipmentUnitReference = new ArrayList<String>();
184  }
185  return this.shipmentUnitReference;
186  }
187 
196  public String getGlobalShipmentUnitId() {
197  return globalShipmentUnitId;
198  }
199 
208  public void setGlobalShipmentUnitId(String value) {
209  this.globalShipmentUnitId = value;
210  }
211 
220  public BigDecimal getWeight() {
221  return weight;
222  }
223 
232  public void setWeight(BigDecimal value) {
233  this.weight = value;
234  }
235 
244  public Date getDeliveryDate() {
245  return deliveryDate;
246  }
247 
256  public void setDeliveryDate(Date value) {
257  this.deliveryDate = value;
258  }
259 
268  public String getSignature() {
269  return signature;
270  }
271 
280  public void setSignature(String value) {
281  this.signature = value;
282  }
283 
293  return product;
294  }
295 
304  public void setProduct(ProductType value) {
305  this.product = value;
306  }
307 
317  return consignee;
318  }
319 
328  public void setConsignee(Consignee value) {
329  this.consignee = value;
330  }
331 
340  public Shipper getShipper() {
341  return shipper;
342  }
343 
352  public void setShipper(Shipper value) {
353  this.shipper = value;
354  }
355 
378  public List<UnitService> getService() {
379  if (service == null) {
380  service = new ArrayList<UnitService>();
381  }
382  return this.service;
383  }
384 
407  public List<ShipmentService> getShipmentService() {
408  if (shipmentService == null) {
409  shipmentService = new ArrayList<ShipmentService>();
410  }
411  return this.shipmentService;
412  }
413 
436  public List<TUHistory> getHistory() {
437  if (history == null) {
438  history = new ArrayList<TUHistory>();
439  }
440  return this.history;
441  }
442 
443 }