ShipmentStatusSearchResult.java

package com.tradecloud.dto.consignment;

import com.tradecloud.domain.model.shipment.ShipmentState;
import com.tradecloud.domain.party.ServiceProvider;
import com.tradecloud.dto.order.XmlAdapterDate;

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.adapters.XmlJavaTypeAdapter;
import java.util.Date;

@XmlRootElement(name = "ShipmentStatusSearchResult")
@XmlAccessorType(XmlAccessType.FIELD)
public class ShipmentStatusSearchResult extends ConsignmentSearchResult {

    @XmlElement(name = "shipmentNumber")
    private String shipmentNumber = "";

    @XmlElement(name = "shipmentReference")
    private String shipmentReference = "";

    @XmlElement
    private String shippingMode;

    @XmlElement(name = "FreightForwarder")
    private String freightForwarder;

    @XmlElement(name = "PlaceOfLoading")
    private String placeOfLoading;

    @XmlJavaTypeAdapter(value = XmlAdapterDate.class, type = java.util.Date.class)
    private Date shipmentCreationDate = new Date();

    @XmlElement(name = "ShipmentState")
    private ShipmentState shipmentState = ShipmentState.COMPLETE;

    @XmlElement(name = "unsignOffReason")
    private String unsignOffReason = "";

    @XmlElement(name = "consignmentReference")
    private String consignmentReference = "";

    @XmlElement(name = "AllocatedCarrier")
    private ServiceProvider allocatedCarrier = new ServiceProvider("");

    @XmlElement(name = "ActualCarrier")
    private ServiceProvider actualCarrier = new ServiceProvider("");

    @XmlJavaTypeAdapter(value = XmlAdapterDate.class, type = java.util.Date.class)
    private Date actualDepartureDate = new Date();

    @XmlElement(name = "Total_TEU")
    private String twentyFootEquivalentUnits = "";

    @XmlJavaTypeAdapter(value = XmlAdapterDate.class, type = java.util.Date.class)
    private Date latestShipmentDate = new Date();

    @XmlElement(name = "PlaceOfDischarge")
    private String placeOfDischarge;

    @XmlElement
    private Long shipmentId;

    public String getShipmentNumber() {
        return shipmentNumber;
    }

    public void setShipmentNumber(String shipmentNumber) {
        this.shipmentNumber = shipmentNumber;
    }

    public Date getShipmentCreationDate() {
        return shipmentCreationDate;
    }

    public void setShipmentCreationDate(Date shipmentCreationDate) {
        this.shipmentCreationDate = shipmentCreationDate;
    }

    public ShipmentState getShipmentState() {
        return shipmentState;
    }

    public void setShipmentState(ShipmentState shipmentState) {
        this.shipmentState = shipmentState;
    }

    public String getUnsignOffReason() {
        return unsignOffReason;
    }

    public void setUnsignOffReason(String unsignOffReason) {
        this.unsignOffReason = unsignOffReason;
    }

    public Long getShipmentId() {
        return shipmentId;
    }

    public void setShipmentId(Long shipmentId) {
        this.shipmentId = shipmentId;
    }

    public String getShipmentReference() {
        return shipmentReference;
    }

    public void setShipmentReference(String shipmentReference) {
        this.shipmentReference = shipmentReference;
    }

    public String getConsignmentReference() {
        return consignmentReference;
    }

    public void setConsignmentReference(String consignmentReference) {
        this.consignmentReference = consignmentReference;
    }

    public ServiceProvider getAllocatedCarrier() {
        return allocatedCarrier;
    }

    public void setAllocatedCarrier(ServiceProvider allocatedCarrier) {
        this.allocatedCarrier = allocatedCarrier;
    }

    public ServiceProvider getActualCarrier() {
        return actualCarrier;
    }

    public void setActualCarrier(ServiceProvider actualCarrier) {
        this.actualCarrier = actualCarrier;
    }

    public Date getActualDepartureDate() {
        return actualDepartureDate;
    }

    public void setActualDepartureDate(Date actualDepartureDate) {
        this.actualDepartureDate = actualDepartureDate;
    }

    public String getTwentyFootEquivalentUnits() {
        return twentyFootEquivalentUnits;
    }

    public void setTwentyFootEquivalentUnits(String twentyFootEquivalentUnits) {
        this.twentyFootEquivalentUnits = twentyFootEquivalentUnits;
    }

    public String getFreightForwarder() {
        return freightForwarder;
    }

    public void setFreightForwarder(String freightForwarder) {
        this.freightForwarder = freightForwarder;
    }

    public Date getLatestShipmentDate() {
        return latestShipmentDate;
    }

    public void setLatestShipmentDate(Date latestShipmentDate) {
        this.latestShipmentDate = latestShipmentDate;
    }

    public String getShippingMode() {
        return shippingMode;
    }

    public void setShippingMode(String shippingMode) {
        this.shippingMode = shippingMode;
    }

    public String getPlaceOfLoading() {
        return placeOfLoading;
    }

    public void setPlaceOfLoading(String placeOfLoading) {
        this.placeOfLoading = placeOfLoading;
    }

    public String getPlaceOfDischarge() {
        return placeOfDischarge;
    }

    public void setPlaceOfDischarge(String placeOfDischarge) {
        this.placeOfDischarge = placeOfDischarge;
    }
}