GLS ShipIT  2.8.11
GLS ShipIT - REST services
Shipment.java
Go to the documentation of this file.
1 
2 package eu.glsgroup.fpcs.datatypes.soap.v1.shipmentprocessing;
3 
9 
10 import javax.xml.bind.annotation.XmlAccessType;
11 import javax.xml.bind.annotation.XmlAccessorType;
12 import javax.xml.bind.annotation.XmlElement;
13 import javax.xml.bind.annotation.XmlSchemaType;
14 import javax.xml.bind.annotation.XmlType;
15 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
16 import java.util.ArrayList;
17 import java.util.Date;
18 import java.util.List;
19 
20 
51 @XmlAccessorType(XmlAccessType.FIELD)
52 @XmlType(name = "Shipment", propOrder = {
53  "shipmentReference",
54  "shippingDate",
55  "incotermCode",
56  "identifier",
57  "middleware",
58  "product",
59  "expressAltDeliveryAllowed",
60  "consignee",
61  "shipper",
62  "shipmentUnit",
63  "service"
64 })
65 public class Shipment {
66 
67  @XmlElement(name = "ShipmentReference")
68  protected List<String> shipmentReference;
69  @XmlElement(name = "ShippingDate", type = String.class)
70  @XmlJavaTypeAdapter(Adapter2.class)
71  @XmlSchemaType(name = "date")
72  protected Date shippingDate;
73  @XmlElement(name = "IncotermCode")
74  protected String incotermCode;
75  @XmlElement(name = "Identifier")
76  protected String identifier;
77  @XmlElement(name = "Middleware")
78  protected String middleware;
79  @XmlElement(name = "Product", required = true)
80  protected ProductType product;
81  @XmlElement(name = "ExpressAltDeliveryAllowed")
82  protected Boolean expressAltDeliveryAllowed;
83  @XmlElement(name = "Consignee", required = true)
84  protected Consignee consignee;
85  @XmlElement(name = "Shipper", required = true)
86  protected Shipper shipper;
87  @XmlElement(name = "ShipmentUnit", required = true)
88  protected List<ShipmentUnit> shipmentUnit;
89  @XmlElement(name = "Service")
90  protected List<ShipmentService> service;
91 
114  public List<String> getShipmentReference() {
115  if (shipmentReference == null) {
116  shipmentReference = new ArrayList<String>();
117  }
118  return this.shipmentReference;
119  }
120 
129  public Date getShippingDate() {
130  return shippingDate;
131  }
132 
141  public void setShippingDate(Date value) {
142  this.shippingDate = value;
143  }
144 
153  public String getIncotermCode() {
154  return incotermCode;
155  }
156 
165  public void setIncotermCode(String value) {
166  this.incotermCode = value;
167  }
168 
177  public String getIdentifier() {
178  return identifier;
179  }
180 
189  public void setIdentifier(String value) {
190  this.identifier = value;
191  }
192 
201  public String getMiddleware() {
202  return middleware;
203  }
204 
213  public void setMiddleware(String value) {
214  this.middleware = value;
215  }
216 
226  return product;
227  }
228 
237  public void setProduct(ProductType value) {
238  this.product = value;
239  }
240 
249  public Boolean isExpressAltDeliveryAllowed() {
250  return expressAltDeliveryAllowed;
251  }
252 
261  public void setExpressAltDeliveryAllowed(Boolean value) {
262  this.expressAltDeliveryAllowed = value;
263  }
264 
274  return consignee;
275  }
276 
285  public void setConsignee(Consignee value) {
286  this.consignee = value;
287  }
288 
297  public Shipper getShipper() {
298  return shipper;
299  }
300 
309  public void setShipper(Shipper value) {
310  this.shipper = value;
311  }
312 
335  public List<ShipmentUnit> getShipmentUnit() {
336  if (shipmentUnit == null) {
337  shipmentUnit = new ArrayList<ShipmentUnit>();
338  }
339  return this.shipmentUnit;
340  }
341 
364  public List<ShipmentService> getService() {
365  if (service == null) {
366  service = new ArrayList<ShipmentService>();
367  }
368  return this.service;
369  }
370 
371 }