GLS ShipIT  3.3.20
GLS ShipIT - SOAP 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 
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(Adapter1 .class)
80  @XmlSchemaType(name = "decimal")
81  protected BigDecimal weight;
82  @XmlElement(name = "DeliveryDate", type = String.class)
83  @XmlJavaTypeAdapter(Adapter2 .class)
84  @XmlSchemaType(name = "dateTime")
85  protected Date deliveryDate;
86  @XmlElement(name = "Signature")
87  protected String signature;
88  @XmlElement(name = "Product", required = true)
89  @XmlSchemaType(name = "string")
90  protected ProductType product;
91  @XmlElement(name = "Consignee", required = true)
92  protected Consignee consignee;
93  @XmlElement(name = "Shipper", required = true)
94  protected Shipper shipper;
95  @XmlElement(name = "Service")
96  protected List<UnitService> service;
97  @XmlElement(name = "ShipmentService")
98  protected List<ShipmentService> shipmentService;
99  @XmlElement(name = "History")
100  protected List<TUHistory> history;
101 
110  public String getTrackID() {
111  return trackID;
112  }
113 
122  public void setTrackID(String value) {
123  this.trackID = value;
124  }
125 
148  public List<String> getShipmentReference() {
149  if (shipmentReference == null) {
150  shipmentReference = new ArrayList<String>();
151  }
152  return this.shipmentReference;
153  }
154 
177  public List<String> getShipmentUnitReference() {
178  if (shipmentUnitReference == null) {
179  shipmentUnitReference = new ArrayList<String>();
180  }
181  return this.shipmentUnitReference;
182  }
183 
192  public BigDecimal getWeight() {
193  return weight;
194  }
195 
204  public void setWeight(BigDecimal value) {
205  this.weight = value;
206  }
207 
216  public Date getDeliveryDate() {
217  return deliveryDate;
218  }
219 
228  public void setDeliveryDate(Date value) {
229  this.deliveryDate = value;
230  }
231 
240  public String getSignature() {
241  return signature;
242  }
243 
252  public void setSignature(String value) {
253  this.signature = value;
254  }
255 
265  return product;
266  }
267 
276  public void setProduct(ProductType value) {
277  this.product = value;
278  }
279 
289  return consignee;
290  }
291 
300  public void setConsignee(Consignee value) {
301  this.consignee = value;
302  }
303 
312  public Shipper getShipper() {
313  return shipper;
314  }
315 
324  public void setShipper(Shipper value) {
325  this.shipper = value;
326  }
327 
350  public List<UnitService> getService() {
351  if (service == null) {
352  service = new ArrayList<UnitService>();
353  }
354  return this.service;
355  }
356 
379  public List<ShipmentService> getShipmentService() {
380  if (shipmentService == null) {
381  shipmentService = new ArrayList<ShipmentService>();
382  }
383  return this.shipmentService;
384  }
385 
408  public List<TUHistory> getHistory() {
409  if (history == null) {
410  history = new ArrayList<TUHistory>();
411  }
412  return this.history;
413  }
414 
415 }