public class DateHandler<R> extends BaseVerifyRule<Date,R>
| 限定符和类型 | 字段和说明 |
|---|---|
private boolean |
is1904Date
是否为1904date
|
private String |
pattern
日期格式
|
allowNull, defaultValue, trim| 构造器和说明 |
|---|
DateHandler(boolean allowNull,
OpsColumn<R> opsColumn)
常规验证
|
| 限定符和类型 | 方法和说明 |
|---|---|
Date |
doHandle(int row,
int col,
Object cellValue)
校验单元格值
|
DateHandler<R> |
is1904Date(boolean is1904Date)
格式化
|
DateHandler<R> |
pattern(String pattern)
格式化
|
defaultValue, handle, handleNull, notNull, trimprivate String pattern
private boolean is1904Date
public DateHandler<R> pattern(String pattern)
pattern - 格式public DateHandler<R> is1904Date(boolean is1904Date)
is1904Date - 格式public Date doHandle(int row, int col, Object cellValue) throws Exception
BaseVerifyRuledoHandle 在类中 BaseVerifyRule<Date,R>row - 行号col - 列号cellValue - 列值ExceptionCopyright © 2023. All rights reserved.