GLS ShipIT
GLS ShipIT - REST services
 All Classes Namespaces Files Functions Variables Enumerator Pages
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;
13 import eu.glsgroup.fpcs.datatypes.soap.v1.common.Consignee;
14 import eu.glsgroup.fpcs.datatypes.soap.v1.common.ProductType;
15 import eu.glsgroup.fpcs.datatypes.soap.v1.common.ShipmentService;
16 import eu.glsgroup.fpcs.datatypes.soap.v1.common.Shipper;
17 import org.w3._2001.xmlschema.Adapter2;
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(Adapter2 .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  protected ProductType product;
82  @XmlElement(name = "ExpressAltDeliveryAllowed")
83  protected Boolean expressAltDeliveryAllowed;
84  @XmlElement(name = "Consignee", required = true)
85  protected Consignee consignee;
86  @XmlElement(name = "Shipper", required = true)
87  protected Shipper shipper;
88  @XmlElement(name = "ShipmentUnit", required = true)
89  protected List<ShipmentUnit> shipmentUnit;
90  @XmlElement(name = "Service")
91  protected List<ShipmentService> service;
92 
115  public List<String> getShipmentReference() {
116  if (shipmentReference == null) {
117  shipmentReference = new ArrayList<String>();
118  }
119  return this.shipmentReference;
120  }
121 
130  public Date getShippingDate() {
131  return shippingDate;
132  }
133 
142  public void setShippingDate(Date value) {
143  this.shippingDate = value;
144  }
145 
154  public String getIncotermCode() {
155  return incotermCode;
156  }
157 
166  public void setIncotermCode(String value) {
167  this.incotermCode = value;
168  }
169 
178  public String getIdentifier() {
179  return identifier;
180  }
181 
190  public void setIdentifier(String value) {
191  this.identifier = value;
192  }
193 
202  public String getMiddleware() {
203  return middleware;
204  }
205 
214  public void setMiddleware(String value) {
215  this.middleware = value;
216  }
217 
227  return product;
228  }
229 
238  public void setProduct(ProductType value) {
239  this.product = value;
240  }
241 
250  public Boolean isExpressAltDeliveryAllowed() {
251  return expressAltDeliveryAllowed;
252  }
253 
262  public void setExpressAltDeliveryAllowed(Boolean value) {
263  this.expressAltDeliveryAllowed = value;
264  }
265 
275  return consignee;
276  }
277 
286  public void setConsignee(Consignee value) {
287  this.consignee = value;
288  }
289 
298  public Shipper getShipper() {
299  return shipper;
300  }
301 
310  public void setShipper(Shipper value) {
311  this.shipper = value;
312  }
313 
336  public List<ShipmentUnit> getShipmentUnit() {
337  if (shipmentUnit == null) {
338  shipmentUnit = new ArrayList<ShipmentUnit>();
339  }
340  return this.shipmentUnit;
341  }
342 
365  public List<ShipmentService> getService() {
366  if (service == null) {
367  service = new ArrayList<ShipmentService>();
368  }
369  return this.service;
370  }
371 
372 }