1、Excel注释

master
wangbing 5 years ago
parent 21a3dfb390
commit 989ce9462d

@ -3,22 +3,24 @@ package ${basePackage}.frame.excel;
import java.io.Serializable;
/**
* WCell - Excel
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class WCell implements Serializable {
private String value;
/**
* ..
*
*/
private String value;
public WCell() {
this.value = "";
}
/**
* .
*
* @param value .
*/
public WCell(String value) {
this.value = value;
}

@ -8,9 +8,11 @@ import java.io.Serializable;
import java.lang.reflect.Field;
/**
* DataTable<br/>
*
* Created by edward on 9/19/14.
* WColumn - Excel()
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class WColumn implements Serializable {
/**
@ -18,13 +20,9 @@ public class WColumn implements Serializable {
*/
private String name;
/**
*
*
*/
private int cellWidth;
/**
* Excel
*/
private boolean isHidden;
/**
*
*/
@ -58,7 +56,6 @@ public class WColumn implements Serializable {
this.description = "";
}
//----------- getter & setter --------------
public String getName() {
return name;
}

@ -6,11 +6,11 @@ import java.util.HashMap;
import java.util.List;
/**
* DataTable.
* Created on 2014/09/19.
* WRow - ExcelWCell<br>HashMap<String, WCell>,keyvalue
*
* @author
* @since 0.1.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class WRow extends HashMap<String, WCell> implements Serializable {

@ -25,11 +25,11 @@ import java.text.SimpleDateFormat;
import java.util.*;
/**
* <br/>
* Created on 2014/09/19.
* WSheet - Excel-Sheet
*
* @author
* @since 0.1.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class WSheet<T> implements Serializable, Cloneable {

@ -3,10 +3,11 @@ package ${basePackage}.frame.excel.annotation;
import java.lang.annotation.*;
/**
* Created on 2014/9/24.
* ColumnDescription - Excel
*
* @author
* @version v1.0.0.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)

@ -3,11 +3,11 @@ package ${basePackage}.frame.excel.annotation;
import java.lang.annotation.*;
/**
* <br/>
* Created on 2014/9/24.
* ColumnName - ExcelExcel使
*
* @author
* @version v1.0.0.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)

@ -3,10 +3,11 @@ package ${basePackage}.frame.excel.annotation;
import java.lang.annotation.*;
/**
* target
* Converter - Excel
*
* @author
* @version v0.0.1
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)

@ -3,10 +3,11 @@ package ${basePackage}.frame.excel.annotation;
import java.lang.annotation.*;
/**
*
* Ignore - Excel
*
* @author
* @since 2.1.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)

@ -3,10 +3,11 @@ package ${basePackage}.frame.excel.annotation;
import java.lang.annotation.*;
/**
*
* ParentFirst -
*
* @author
* @since 2.1.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)

@ -3,11 +3,11 @@ package ${basePackage}.frame.excel.annotation;
import java.lang.annotation.*;
/**
* <br/>
* Created on 2014/9/24.
* SheetName - Excel使Class
*
* @author
* @version v1.0.0.0
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.converter;
/**
* BooleanConverter - BooleanStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class BooleanConverter implements Converter<Boolean> {
@Override

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.converter;
/**
* ByteConverter - ByteStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class ByteConverter implements Converter<Byte> {
@Override

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.converter;
/**
* CharacterConverter - CharacterStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class CharacterConverter implements Converter<Character> {
@Override

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.converter;
/**
* Converter -
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public interface Converter<T> {
T convert(String var);

@ -4,6 +4,13 @@ import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* DateConverter - DateStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class DateConverter implements Converter<Date> {
@Override

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.converter;
/**
* DoubleConverter - DoubleStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class DoubleConverter implements Converter<Double> {
@Override

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.converter;
/**
* FloatConverter - FloatStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class FloatConverter implements Converter<Float> {
@Override

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.converter;
/**
* IntegerConverter - IntegerStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class IntegerConverter implements Converter<Integer> {
@Override

@ -1,9 +1,15 @@
package ${basePackage}.frame.excel.converter;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* LongConverter - LongStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class LongConverter implements Converter<Long> {
@Override

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.converter;
/**
* ShortConverter - ShortStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class ShortConverter implements Converter<Short> {
@Override

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.converter;
/**
* StringConverter - StringStringString
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class StringConverter implements Converter<String> {
@Override

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.exception;
/**
* Excel
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class ReadErrorException extends Exception {
public ReadErrorException() {
}

@ -1,5 +1,12 @@
package ${basePackage}.frame.excel.exception;
/**
* Excel
*
* @author wangbing
* @version 0.0.1
* @since 2017-01-01
*/
public class TemplateNotMatchException extends Exception {
public TemplateNotMatchException() {
}

@ -4,7 +4,7 @@ import org.hibernate.validator.constraints.Length;
import ${basePackage}.frame.base.BaseRequest;
import ${basePackage}.frame.excel.annotation.ColumnDescription;
import ${basePackage}.frame.excel.annotation.ColumnName;
import xyz.wbsite.frame.excel.annotation.SheetName;
import ${basePackage}.frame.excel.annotation.SheetName;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

Loading…
Cancel
Save

Powered by TurnKey Linux.