
eu.fispace.api.lg.ProvideShipmentDetailsResponseMessage Maven / Gradle / Ivy
//
// Este archivo ha sido generado por la arquitectura JavaTM para la implantación de la referencia de enlace (JAXB) XML v2.2.7
// Visite http://java.sun.com/xml/jaxb
// Todas las modificaciones realizadas en este archivo se perderán si se vuelve a compilar el esquema de origen.
// Generado el: 2016.04.10 a las 11:14:18 AM CEST
//
package eu.fispace.api.lg;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
import eu.limetri.ygg.api.ResponseMessage;
import org.jvnet.jaxb2_commons.lang.JAXBToStringStrategy;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.ToStringStrategy;
import org.jvnet.jaxb2_commons.locator.ObjectLocator;
/**
*
* This class represents a message that includes detail information about a specific shipment. It is typically
* sent by the supplier of a shipment to the shipment recipient. It is a response to a message of type
* @ProvideShipmentDetailsRequestMessage.
*
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"shipmentDetails"
})
@XmlRootElement(name = "ProvideShipmentDetailsResponseMessage")
public class ProvideShipmentDetailsResponseMessage
extends ResponseMessage
implements Serializable, ToString
{
@XmlElement(required = true)
protected List shipmentDetails;
/**
* Gets the value of the shipmentDetails property.
*
*
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a set
method for the shipmentDetails property.
*
*
* For example, to add a new item, do as follows:
*
* getShipmentDetails().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ShipmentType }
*
*
*/
public List getShipmentDetails() {
if (shipmentDetails == null) {
shipmentDetails = new ArrayList();
}
return this.shipmentDetails;
}
public boolean isSetShipmentDetails() {
return ((this.shipmentDetails!= null)&&(!this.shipmentDetails.isEmpty()));
}
public void unsetShipmentDetails() {
this.shipmentDetails = null;
}
public String toString() {
final ToStringStrategy strategy = JAXBToStringStrategy.INSTANCE;
final StringBuilder buffer = new StringBuilder();
append(null, buffer, strategy);
return buffer.toString();
}
public StringBuilder append(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
strategy.appendStart(locator, this, buffer);
appendFields(locator, buffer, strategy);
strategy.appendEnd(locator, this, buffer);
return buffer;
}
public StringBuilder appendFields(ObjectLocator locator, StringBuilder buffer, ToStringStrategy strategy) {
super.appendFields(locator, buffer, strategy);
{
List theShipmentDetails;
theShipmentDetails = (this.isSetShipmentDetails()?this.getShipmentDetails():null);
strategy.appendField(locator, this, "shipmentDetails", buffer, theShipmentDetails);
}
return buffer;
}
public ProvideShipmentDetailsResponseMessage withShipmentDetails(ShipmentType... values) {
if (values!= null) {
for (ShipmentType value: values) {
getShipmentDetails().add(value);
}
}
return this;
}
public ProvideShipmentDetailsResponseMessage withShipmentDetails(Collection values) {
if (values!= null) {
getShipmentDetails().addAll(values);
}
return this;
}
}