Java Code Examples for com.alibaba.excel.enums.CellDataTypeEnum#STRING

The following examples show how to use com.alibaba.excel.enums.CellDataTypeEnum#STRING . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CellData.java    From easyexcel with Apache License 2.0 5 votes vote down vote up
public CellData(CellDataTypeEnum type, String stringValue) {
    if (type != CellDataTypeEnum.STRING && type != CellDataTypeEnum.ERROR) {
        throw new IllegalArgumentException("Only support CellDataTypeEnum.STRING and  CellDataTypeEnum.ERROR");
    }
    if (stringValue == null) {
        throw new IllegalArgumentException("StringValue can not be null");
    }
    this.type = type;
    this.stringValue = stringValue;
    this.formula = Boolean.FALSE;
}
 
Example 2
Source File: DisabledConverter.java    From fw-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 3
Source File: ByteStringConverter.java    From easyexcel with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 4
Source File: StringStringConverter.java    From easyexcel with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 5
Source File: IntegerStringConverter.java    From easyexcel with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 6
Source File: DoubleStringConverter.java    From easyexcel with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 7
Source File: CellData.java    From easyexcel with Apache License 2.0 4 votes vote down vote up
public CellData(String stringValue) {
    this(CellDataTypeEnum.STRING, stringValue);
}
 
Example 8
Source File: DeleteConverter.java    From fw-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 9
Source File: ShortStringConverter.java    From easyexcel with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 10
Source File: FloatStringConverter.java    From easyexcel with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 11
Source File: LocalDateTimeExcelConverter.java    From easyexcel-utils with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 12
Source File: DeleteConverter.java    From fw-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 13
Source File: DisabledConverter.java    From fw-spring-cloud with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 14
Source File: StatusConverter.java    From spring-microservice-exam with MIT License 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
	return CellDataTypeEnum.STRING;
}
 
Example 15
Source File: GenderConverter.java    From spring-microservice-exam with MIT License 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
	return CellDataTypeEnum.STRING;
}
 
Example 16
Source File: IdentityTypeConverter.java    From spring-microservice-exam with MIT License 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
	return CellDataTypeEnum.STRING;
}
 
Example 17
Source File: BooleanStringConverter.java    From easyexcel with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}
 
Example 18
Source File: SubjectTypeConverter.java    From spring-microservice-exam with MIT License 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
	return CellDataTypeEnum.STRING;
}
 
Example 19
Source File: SubmitStatusConverter.java    From spring-microservice-exam with MIT License 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
	return CellDataTypeEnum.STRING;
}
 
Example 20
Source File: BigDecimalStringConverter.java    From easyexcel with Apache License 2.0 4 votes vote down vote up
@Override
public CellDataTypeEnum supportExcelTypeKey() {
    return CellDataTypeEnum.STRING;
}