jp.co.ctc_g.jse.core.csv.DownloadFile.java Source code

Java tutorial

Introduction

Here is the source code for jp.co.ctc_g.jse.core.csv.DownloadFile.java

Source

/*
 * Copyright (c) 2013 ITOCHU Techno-Solutions Corporation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *     http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package jp.co.ctc_g.jse.core.csv;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * <p>
 * ???????(?)???????
 * </p>
 * @author ITOCHU Techno-Solutions Corporation.
 */
public class DownloadFile implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ???(?)
     */
    private String tempFileName;

    /**
     * ????
     */
    private String fileName;

    /**
     * ??????????
     * ????????
     */
    private boolean delete;

    /**
     * ??
     */
    public DownloadFile() {
    }

    /**
     * ??
     * @param tempFileName ???
     */
    public DownloadFile(String tempFileName) {
        this.tempFileName = tempFileName;
        this.delete = Boolean.TRUE;
    }

    /**
     * Temp??????
     * @return Temp??
     */
    public String getTempFileName() {
        return tempFileName;
    }

    /**
     * Temp?????
     * @param tempFileName Temp??
     */
    public void setTempFileName(String tempFileName) {
        this.tempFileName = tempFileName;
    }

    /**
     * ??????
     * @return true/false
     */
    public boolean isDelete() {
        return delete;
    }

    /**
     * ?????????
     * @param delete true??false
     */
    public void setDelete(boolean delete) {
        this.delete = delete;
    }

    /**
     * ??????
     * @return ??
     */
    public String getFileName() {
        return fileName;
    }

    /**
     * ?????
     * @param fileName ??
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

}