CommentReportDTO.java

package com.tradecloud.dto.shipment.actualsummarycosting;

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

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "Comment")
public class CommentReportDTO {
    @XmlAttribute
    private String text;
    @XmlAttribute
    private String date;
    @XmlAttribute
    private String type;
    @XmlAttribute
    private String reference;

    public CommentReportDTO(String text, String date, String type, String reference) {
        this.text = text;
        this.date = date;
        this.type = type;
        this.reference = reference;
    }

    public CommentReportDTO() {}

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getType() {
        return type;
    }

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

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }
}