GLS ShipIT
GLS ShipIT - SOAP services
 All Classes Namespaces Files Functions Variables Enumerator Pages
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.XmlType;
11 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
12 import eu.glsgroup.fpcs.datatypes.soap.v1.common.UnitService;
13 import org.w3._2001.xmlschema.Adapter3;
14 
15 
45 @XmlAccessorType(XmlAccessType.FIELD)
46 @XmlType(name = "ShipmentUnit", propOrder = {
47  "shipmentUnitReference",
48  "weight",
49  "note1",
50  "note2",
51  "service",
52  "frAlphaParcelReference",
53  "trackID",
54  "parcelNumber"
55 })
56 public class ShipmentUnit {
57 
58  @XmlElement(name = "ShipmentUnitReference")
59  protected List<String> shipmentUnitReference;
60  @XmlElement(name = "Weight", type = String.class)
61  @XmlJavaTypeAdapter(Adapter3 .class)
62  protected BigDecimal weight;
63  @XmlElement(name = "Note1")
64  protected String note1;
65  @XmlElement(name = "Note2")
66  protected String note2;
67  @XmlElement(name = "Service")
68  protected List<UnitService> service;
69  @XmlElement(name = "FRAlphaParcelReference")
70  protected String frAlphaParcelReference;
71  @XmlElement(name = "TrackID")
72  protected String trackID;
73  @XmlElement(name = "ParcelNumber")
74  protected String parcelNumber;
75 
98  public List<String> getShipmentUnitReference() {
99  if (shipmentUnitReference == null) {
100  shipmentUnitReference = new ArrayList<String>();
101  }
102  return this.shipmentUnitReference;
103  }
104 
113  public BigDecimal getWeight() {
114  return weight;
115  }
116 
125  public void setWeight(BigDecimal value) {
126  this.weight = value;
127  }
128 
137  public String getNote1() {
138  return note1;
139  }
140 
149  public void setNote1(String value) {
150  this.note1 = value;
151  }
152 
161  public String getNote2() {
162  return note2;
163  }
164 
173  public void setNote2(String value) {
174  this.note2 = value;
175  }
176 
199  public List<UnitService> getService() {
200  if (service == null) {
201  service = new ArrayList<UnitService>();
202  }
203  return this.service;
204  }
205 
214  public String getFRAlphaParcelReference() {
215  return frAlphaParcelReference;
216  }
217 
226  public void setFRAlphaParcelReference(String value) {
227  this.frAlphaParcelReference = value;
228  }
229 
238  public String getTrackID() {
239  return trackID;
240  }
241 
250  public void setTrackID(String value) {
251  this.trackID = value;
252  }
253 
262  public String getParcelNumber() {
263  return parcelNumber;
264  }
265 
274  public void setParcelNumber(String value) {
275  this.parcelNumber = value;
276  }
277 
278 }