GLS ShipIT  2.8.11
GLS ShipIT - REST services
ShipmentUnit.java
Go to the documentation of this file.
1 
2 package eu.glsgroup.fpcs.datatypes.soap.v1.shipmentprocessing;
3 
6 
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.XmlType;
11 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
12 import java.math.BigDecimal;
13 import java.util.ArrayList;
14 import java.util.List;
15 
16 
44 @XmlAccessorType(XmlAccessType.FIELD)
45 @XmlType(name = "ShipmentUnit", propOrder = {
46  "shipmentUnitReference",
47  "weight",
48  "note1",
49  "note2",
50  "service",
51  "frAlphaParcelReference",
52  "trackID",
53  "parcelNumber"
54 })
55 public class ShipmentUnit {
56 
57  @XmlElement(name = "ShipmentUnitReference")
58  protected List<String> shipmentUnitReference;
59  @XmlElement(name = "Weight", type = String.class)
60  @XmlJavaTypeAdapter(Adapter3.class)
61  protected BigDecimal weight;
62  @XmlElement(name = "Note1")
63  protected String note1;
64  @XmlElement(name = "Note2")
65  protected String note2;
66  @XmlElement(name = "Service")
67  protected List<UnitService> service;
68  @XmlElement(name = "FRAlphaParcelReference")
69  protected String frAlphaParcelReference;
70  @XmlElement(name = "TrackID")
71  protected String trackID;
72  @XmlElement(name = "ParcelNumber")
73  protected String parcelNumber;
74 
97  public List<String> getShipmentUnitReference() {
98  if (shipmentUnitReference == null) {
99  shipmentUnitReference = new ArrayList<String>();
100  }
101  return this.shipmentUnitReference;
102  }
103 
112  public BigDecimal getWeight() {
113  return weight;
114  }
115 
124  public void setWeight(BigDecimal value) {
125  this.weight = value;
126  }
127 
136  public String getNote1() {
137  return note1;
138  }
139 
148  public void setNote1(String value) {
149  this.note1 = value;
150  }
151 
160  public String getNote2() {
161  return note2;
162  }
163 
172  public void setNote2(String value) {
173  this.note2 = value;
174  }
175 
198  public List<UnitService> getService() {
199  if (service == null) {
200  service = new ArrayList<UnitService>();
201  }
202  return this.service;
203  }
204 
213  public String getFRAlphaParcelReference() {
214  return frAlphaParcelReference;
215  }
216 
225  public void setFRAlphaParcelReference(String value) {
226  this.frAlphaParcelReference = value;
227  }
228 
237  public String getTrackID() {
238  return trackID;
239  }
240 
249  public void setTrackID(String value) {
250  this.trackID = value;
251  }
252 
261  public String getParcelNumber() {
262  return parcelNumber;
263  }
264 
273  public void setParcelNumber(String value) {
274  this.parcelNumber = value;
275  }
276 
277 }