LiteContainerDTO.java

package com.tradecloud.dto.consignment.lite;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by ds on 2017/02/14.
 */
@XmlRootElement(name = "Container")
@XmlAccessorType(XmlAccessType.FIELD)
public class LiteContainerDTO {

    @XmlAttribute(required = true)
    private String finalDestination;
    @XmlAttribute(required = true)
    private String quantity;
    @XmlAttribute(required = true)
    private String type;

    public String getFinalDestination() {
        return finalDestination;
    }

    public void setFinalDestination(String finalDestination) {
        this.finalDestination = finalDestination;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}