GLS ShipIT
GLS ShipIT - SOAP services
 All Classes Namespaces Files Functions Variables Enumerator Pages
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;
14 import eu.glsgroup.fpcs.datatypes.soap.v1.common.Consignee;
15 import eu.glsgroup.fpcs.datatypes.soap.v1.common.ProductType;
16 import eu.glsgroup.fpcs.datatypes.soap.v1.common.ShipmentService;
17 import eu.glsgroup.fpcs.datatypes.soap.v1.common.Shipper;
18 import eu.glsgroup.fpcs.datatypes.soap.v1.common.UnitService;
19 import org.w3._2001.xmlschema.Adapter1;
20 import org.w3._2001.xmlschema.Adapter3;
21 
22 
55 @XmlAccessorType(XmlAccessType.FIELD)
56 @XmlType(name = "UnitDetail", propOrder = {
57  "trackID",
58  "shipmentReference",
59  "shipmentUnitReference",
60  "weight",
61  "deliveryDate",
62  "signature",
63  "product",
64  "consignee",
65  "shipper",
66  "service",
67  "shipmentService",
68  "history"
69 })
70 public class UnitDetail {
71 
72  @XmlElement(name = "TrackID", required = true)
73  protected String trackID;
74  @XmlElement(name = "ShipmentReference")
75  protected List<String> shipmentReference;
76  @XmlElement(name = "ShipmentUnitReference")
77  protected List<String> shipmentUnitReference;
78  @XmlElement(name = "Weight", required = true, type = String.class)
79  @XmlJavaTypeAdapter(Adapter3 .class)
80  protected BigDecimal weight;
81  @XmlElement(name = "DeliveryDate", type = String.class)
82  @XmlJavaTypeAdapter(Adapter1 .class)
83  @XmlSchemaType(name = "dateTime")
84  protected Date deliveryDate;
85  @XmlElement(name = "Signature")
86  protected String signature;
87  @XmlElement(name = "Product", required = true)
88  protected ProductType product;
89  @XmlElement(name = "Consignee", required = true)
90  protected Consignee consignee;
91  @XmlElement(name = "Shipper", required = true)
92  protected Shipper shipper;
93  @XmlElement(name = "Service")
94  protected List<UnitService> service;
95  @XmlElement(name = "ShipmentService")
96  protected List<ShipmentService> shipmentService;
97  @XmlElement(name = "History")
98  protected List<TUHistory> history;
99 
108  public String getTrackID() {
109  return trackID;
110  }
111 
120  public void setTrackID(String value) {
121  this.trackID = value;
122  }
123 
146  public List<String> getShipmentReference() {
147  if (shipmentReference == null) {
148  shipmentReference = new ArrayList<String>();
149  }
150  return this.shipmentReference;
151  }
152 
175  public List<String> getShipmentUnitReference() {
176  if (shipmentUnitReference == null) {
177  shipmentUnitReference = new ArrayList<String>();
178  }
179  return this.shipmentUnitReference;
180  }
181 
190  public BigDecimal getWeight() {
191  return weight;
192  }
193 
202  public void setWeight(BigDecimal value) {
203  this.weight = value;
204  }
205 
214  public Date getDeliveryDate() {
215  return deliveryDate;
216  }
217 
226  public void setDeliveryDate(Date value) {
227  this.deliveryDate = value;
228  }
229 
238  public String getSignature() {
239  return signature;
240  }
241 
250  public void setSignature(String value) {
251  this.signature = value;
252  }
253 
263  return product;
264  }
265 
274  public void setProduct(ProductType value) {
275  this.product = value;
276  }
277 
287  return consignee;
288  }
289 
298  public void setConsignee(Consignee value) {
299  this.consignee = value;
300  }
301 
310  public Shipper getShipper() {
311  return shipper;
312  }
313 
322  public void setShipper(Shipper value) {
323  this.shipper = value;
324  }
325 
348  public List<UnitService> getService() {
349  if (service == null) {
350  service = new ArrayList<UnitService>();
351  }
352  return this.service;
353  }
354 
377  public List<ShipmentService> getShipmentService() {
378  if (shipmentService == null) {
379  shipmentService = new ArrayList<ShipmentService>();
380  }
381  return this.shipmentService;
382  }
383 
406  public List<TUHistory> getHistory() {
407  if (history == null) {
408  history = new ArrayList<TUHistory>();
409  }
410  return this.history;
411  }
412 
413 }