
com.mobaijun.excel.model.ExcelExportParam Maven / Gradle / Ivy
/*
* Copyright (C) 2022 [www.mobaijun.com]
*
* 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
*
* https://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 com.mobaijun.excel.model;
import com.alibaba.excel.support.ExcelTypeEnum;
import jakarta.servlet.http.HttpServletResponse;
import java.util.List;
/**
* software:IntelliJ IDEA 2022.1
* class name: ExcelExportParam
* class description:Excel 导出参数
*
* @author MoBaiJun 2022/10/28 13:36
*/
public class ExcelExportParam {
/**
* 需要导出的数据列表
*/
List dataList;
/**
* Excel每行数据转换成的对象类
*/
Class clazz;
/**
* 工作簿名称 导出/写入文件用
*/
String sheetName;
/**
* 下载提示的文件名 无需带上xls、xlsx后缀
*/
String fileName;
/**
* Excel类型 xls、xlsx
*/
ExcelTypeEnum excelTypeEnum;
/**
* http 响应
*/
HttpServletResponse response;
/**
* 文件写入绝对路径 写入到服务器磁盘用
*/
String excelFileWriteAbsolutePath;
@Override
public String toString() {
return "ExcelExportParam{" +
"dataList=" + dataList +
", clazz=" + clazz +
", sheetName='" + sheetName + '\'' +
", fileName='" + fileName + '\'' +
", excelTypeEnum=" + excelTypeEnum +
", response=" + response +
", excelFileWriteAbsolutePath='" + excelFileWriteAbsolutePath + '\'' +
'}';
}
public List getDataList() {
return dataList;
}
public void setDataList(List dataList) {
this.dataList = dataList;
}
public Class getClazz() {
return clazz;
}
public void setClazz(Class clazz) {
this.clazz = clazz;
}
public String getSheetName() {
return sheetName;
}
public void setSheetName(String sheetName) {
this.sheetName = sheetName;
}
public String getFileName() {
return fileName;
}
public void setFileName(String fileName) {
this.fileName = fileName;
}
public ExcelTypeEnum getExcelTypeEnum() {
return excelTypeEnum;
}
public void setExcelTypeEnum(ExcelTypeEnum excelTypeEnum) {
this.excelTypeEnum = excelTypeEnum;
}
public HttpServletResponse getResponse() {
return response;
}
public void setResponse(HttpServletResponse response) {
this.response = response;
}
public String getExcelFileWriteAbsolutePath() {
return excelFileWriteAbsolutePath;
}
public void setExcelFileWriteAbsolutePath(String excelFileWriteAbsolutePath) {
this.excelFileWriteAbsolutePath = excelFileWriteAbsolutePath;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy