LCTenorDTO.java

package com.tradecloud.dto.letterofcredit.integration;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

@XmlAccessorType(XmlAccessType.FIELD)
public class LCTenorDTO implements Serializable {

    private boolean afterDate;
    private String details;

    @XmlJavaTypeAdapter(DateAdapter.class)
    private Date maturityDate;

    private int numberOfDays;
    private double percentage;
    private String type;

    public boolean isAfterDate() {
        return afterDate;
    }

    public void setAfterDate(boolean afterDate) {
        this.afterDate = afterDate;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public Date getMaturityDate() {
        return maturityDate;
    }

    public void setMaturityDate(Date maturityDate) {
        this.maturityDate = maturityDate;
    }

    public int getNumberOfDays() {
        return numberOfDays;
    }

    public void setNumberOfDays(int numberOfDays) {
        this.numberOfDays = numberOfDays;
    }

    public double getPercentage() {
        return percentage;
    }

    public void setPercentage(double percentage) {
        this.percentage = percentage;
    }

    public String getType() {
        return type;
    }

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