GLS ShipIT  3.3.20
GLS ShipIT - REST services
ShipmentUnit.java
Go to the documentation of this file.
1 
2 package eu.glsgroup.fpcs.datatypes.soap.v1.shipmentprocessing;
3 
4 import java.math.BigDecimal;
5 import java.util.ArrayList;
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;
16 
17 
48 @XmlAccessorType(XmlAccessType.FIELD)
49 @XmlType(name = "ShipmentUnit", propOrder = {
50  "shipmentUnitReference",
51  "weight",
52  "note1",
53  "note2",
54  "service",
55  "frAlphaParcelReference",
56  "trackID",
57  "parcelNumber",
58  "volume"
59 })
60 public class ShipmentUnit {
61 
62  @XmlElement(name = "ShipmentUnitReference")
63  protected List<String> shipmentUnitReference;
64  @XmlElement(name = "Weight", type = String.class)
65  @XmlJavaTypeAdapter(Adapter1 .class)
66  @XmlSchemaType(name = "decimal")
67  protected BigDecimal weight;
68  @XmlElement(name = "Note1")
69  protected String note1;
70  @XmlElement(name = "Note2")
71  protected String note2;
72  @XmlElement(name = "Service")
73  protected List<UnitService> service;
74  @XmlElement(name = "FRAlphaParcelReference")
75  protected String frAlphaParcelReference;
76  @XmlElement(name = "TrackID")
77  protected String trackID;
78  @XmlElement(name = "ParcelNumber")
79  protected String parcelNumber;
80  @XmlElement(name = "Volume")
81  protected Volume volume;
82 
105  public List<String> getShipmentUnitReference() {
106  if (shipmentUnitReference == null) {
107  shipmentUnitReference = new ArrayList<String>();
108  }
109  return this.shipmentUnitReference;
110  }
111 
120  public BigDecimal getWeight() {
121  return weight;
122  }
123 
132  public void setWeight(BigDecimal value) {
133  this.weight = value;
134  }
135 
144  public String getNote1() {
145  return note1;
146  }
147 
156  public void setNote1(String value) {
157  this.note1 = value;
158  }
159 
168  public String getNote2() {
169  return note2;
170  }
171 
180  public void setNote2(String value) {
181  this.note2 = value;
182  }
183 
206  public List<UnitService> getService() {
207  if (service == null) {
208  service = new ArrayList<UnitService>();
209  }
210  return this.service;
211  }
212 
221  public String getFRAlphaParcelReference() {
222  return frAlphaParcelReference;
223  }
224 
233  public void setFRAlphaParcelReference(String value) {
234  this.frAlphaParcelReference = value;
235  }
236 
245  public String getTrackID() {
246  return trackID;
247  }
248 
257  public void setTrackID(String value) {
258  this.trackID = value;
259  }
260 
269  public String getParcelNumber() {
270  return parcelNumber;
271  }
272 
281  public void setParcelNumber(String value) {
282  this.parcelNumber = value;
283  }
284 
293  public Volume getVolume() {
294  return volume;
295  }
296 
305  public void setVolume(Volume value) {
306  this.volume = value;
307  }
308 
309 }