GLS ShipIT  3.3.20
GLS ShipIT - REST services
Shipment.java
Go to the documentation of this file.
1 
2 package eu.glsgroup.fpcs.datatypes.soap.v1.shipmentprocessing;
3 
4 import java.util.ArrayList;
5 import java.util.Date;
6 import java.util.List;
7 import javax.xml.bind.annotation.XmlAccessType;
8 import javax.xml.bind.annotation.XmlAccessorType;
9 import javax.xml.bind.annotation.XmlElement;
10 import javax.xml.bind.annotation.XmlSchemaType;
11 import javax.xml.bind.annotation.XmlType;
12 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
18 
19 
52 @XmlAccessorType(XmlAccessType.FIELD)
53 @XmlType(name = "Shipment", propOrder = {
54  "shipmentReference",
55  "shippingDate",
56  "incotermCode",
57  "identifier",
58  "middleware",
59  "product",
60  "expressAltDeliveryAllowed",
61  "consignee",
62  "shipper",
63  "shipmentUnit",
64  "service"
65 })
66 public class Shipment {
67 
68  @XmlElement(name = "ShipmentReference")
69  protected List<String> shipmentReference;
70  @XmlElement(name = "ShippingDate", type = String.class)
71  @XmlJavaTypeAdapter(Adapter3 .class)
72  @XmlSchemaType(name = "date")
73  protected Date shippingDate;
74  @XmlElement(name = "IncotermCode")
75  protected String incotermCode;
76  @XmlElement(name = "Identifier")
77  protected String identifier;
78  @XmlElement(name = "Middleware")
79  protected String middleware;
80  @XmlElement(name = "Product", required = true)
81  @XmlSchemaType(name = "string")
82  protected ProductType product;
83  @XmlElement(name = "ExpressAltDeliveryAllowed")
84  protected Boolean expressAltDeliveryAllowed;
85  @XmlElement(name = "Consignee", required = true)
86  protected Consignee consignee;
87  @XmlElement(name = "Shipper", required = true)
88  protected Shipper shipper;
89  @XmlElement(name = "ShipmentUnit", required = true)
90  protected List<ShipmentUnit> shipmentUnit;
91  @XmlElement(name = "Service")
92  protected List<ShipmentService> service;
93 
116  public List<String> getShipmentReference() {
117  if (shipmentReference == null) {
118  shipmentReference = new ArrayList<String>();
119  }
120  return this.shipmentReference;
121  }
122 
131  public Date getShippingDate() {
132  return shippingDate;
133  }
134 
143  public void setShippingDate(Date value) {
144  this.shippingDate = value;
145  }
146 
155  public String getIncotermCode() {
156  return incotermCode;
157  }
158 
167  public void setIncotermCode(String value) {
168  this.incotermCode = value;
169  }
170 
179  public String getIdentifier() {
180  return identifier;
181  }
182 
191  public void setIdentifier(String value) {
192  this.identifier = value;
193  }
194 
203  public String getMiddleware() {
204  return middleware;
205  }
206 
215  public void setMiddleware(String value) {
216  this.middleware = value;
217  }
218 
228  return product;
229  }
230 
239  public void setProduct(ProductType value) {
240  this.product = value;
241  }
242 
251  public Boolean isExpressAltDeliveryAllowed() {
252  return expressAltDeliveryAllowed;
253  }
254 
263  public void setExpressAltDeliveryAllowed(Boolean value) {
264  this.expressAltDeliveryAllowed = value;
265  }
266 
276  return consignee;
277  }
278 
287  public void setConsignee(Consignee value) {
288  this.consignee = value;
289  }
290 
299  public Shipper getShipper() {
300  return shipper;
301  }
302 
311  public void setShipper(Shipper value) {
312  this.shipper = value;
313  }
314 
337  public List<ShipmentUnit> getShipmentUnit() {
338  if (shipmentUnit == null) {
339  shipmentUnit = new ArrayList<ShipmentUnit>();
340  }
341  return this.shipmentUnit;
342  }
343 
366  public List<ShipmentService> getService() {
367  if (service == null) {
368  service = new ArrayList<ShipmentService>();
369  }
370  return this.service;
371  }
372 
373 }