ShipmentACUPReportShipmentContainerDTO.java
package com.tradecloud.dto.shipment.actualunitcosting;
import javax.xml.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: ds
* Date: 2014/03/06
* Time: 5:09 PM
* To change this template use File | Settings | File Templates.
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "Container")
public class ShipmentACUPReportShipmentContainerDTO {
@XmlAttribute(required = true)
String containerType;
@XmlAttribute
String transporter;
@XmlAttribute(required = true)
double quantity;
List<ShipmentACUReportShipmentContainerInfoDTO> containerInfoDTOList;
public String getContainerType() {
return containerType;
}
public void setContainerType(String containerType) {
this.containerType = containerType;
}
public double getQuantity() {
return quantity;
}
public void setQuantity(double quantity) {
this.quantity = quantity;
}
public List<ShipmentACUReportShipmentContainerInfoDTO> getContainerInfoDTOList() {
return containerInfoDTOList;
}
public void setContainerInfoDTOList(List<ShipmentACUReportShipmentContainerInfoDTO> containerInfoDTOList) {
this.containerInfoDTOList = containerInfoDTOList;
}
public void addContainerInfoDTO(ShipmentACUReportShipmentContainerInfoDTO containerInfoDTO) {
if (containerInfoDTOList == null) {
containerInfoDTOList = new ArrayList<ShipmentACUReportShipmentContainerInfoDTO>();
}
containerInfoDTOList.add(containerInfoDTO);
}
public void removeContainerInfoDTO(ShipmentACUReportShipmentContainerInfoDTO containerInfoDTO) {
if (containerInfoDTOList != null) {
if (containerInfoDTOList.contains(containerInfoDTO)) {
containerInfoDTOList.remove(containerInfoDTO);
}
}
}
public String getTransporter() {
return transporter;
}
public void setTransporter(String transporter) {
this.transporter = transporter;
}
}