ValidateInfoDto.java 1.07 KB
Newer Older
eddie.woo's avatar
eddie.woo committed
1 2 3 4 5 6 7 8
package pwc.taxtech.atms.dto;

import java.util.ArrayList;
import java.util.List;

public class ValidateInfoDto {

    private String type;
9

eddie.woo's avatar
eddie.woo committed
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
    private List<String> inValidateCodeList;

    /**
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * @return the inValidateCodeList
     */
    public List<String> getInValidateCodeList() {
        return inValidateCodeList;
    }

    /**
     * @param inValidateCodeList the inValidateCodeList to set
     */
    public void setInValidateCodeList(List<String> inValidateCodeList) {
        this.inValidateCodeList = inValidateCodeList;
    }
39

eddie.woo's avatar
eddie.woo committed
40 41
    /**
     * add inValidateCode into inValidateCodeList
42
     *
eddie.woo's avatar
eddie.woo committed
43 44 45
     * @param inValidateCode
     */
    public void addInValidateCode(String inValidateCode) {
46
        if (this.inValidateCodeList == null) {
eddie.woo's avatar
eddie.woo committed
47 48 49 50 51
            this.inValidateCodeList = new ArrayList<>();
        }
        inValidateCodeList.add(inValidateCode);
    }
}