Package com.github.javaxcel.annotation
Annotation Type ExcelModel
@Documented @Target(TYPE) @Retention(RUNTIME) public @interface ExcelModel
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description Class<? extends com.github.javaxcel.styler.ExcelStyleConfig>bodyStyleConfiguration of common body style.StringdefaultValueReplacement of the value when only writes the value that is null or empty string.booleanenumDropdownPolicy that determines whether this will set constraint toEnumfield or not.booleanexplicitPolicy that determines whether this will select explicitly designated fields or not.Class<? extends com.github.javaxcel.styler.ExcelStyleConfig>headerStyleConfiguration of common header style.booleanincludeSuperPolicy that determines whether this will select super classes' fields or own fields.
-
Element Details
-
includeSuper
boolean includeSuperPolicy that determines whether this will select super classes' fields or own fields.If this is
true, this will select declared own fields including the inherited. Otherwise, this will select only declared own fields except the inherited.- Returns:
- policy that determines whether this will select super classes' fields or not
- Default:
- false
-
explicit
boolean explicitPolicy that determines whether this will select explicitly designated fields or not.If this is
true, this will select the fields that annotated withExcelColumn. Otherwise, this will select all the fields whether it is annotated withExcelColumnor not.- Returns:
- policy that determines whether this will select explicitly designated fields or not.
- Default:
- false
-
enumDropdown
boolean enumDropdownPolicy that determines whether this will set constraint toEnumfield or not.If this is
true, this will make the column ofEnumfield dropdown.- Returns:
- whether this column will be dropdown or not.
- See Also:
ModelWriter.enumDropdown(),ExcelColumn.enumDropdown(),ExcelColumn.dropdownItems()
- Default:
- false
-
defaultValue
String defaultValueReplacement of the value when only writes the value that is null or empty string.This is ineffective to primitive type.
- Returns:
- replacement of the value when the value is null or empty string
- See Also:
AbstractExcelWriter.defaultValue(String),ExcelColumn.defaultValue()
- Default:
- ""
-
headerStyle
Class<? extends com.github.javaxcel.styler.ExcelStyleConfig> headerStyleConfiguration of common header style.This configuration is applied to all header cells.
- Returns:
- configuration of common header style
- See Also:
ExcelColumn.headerStyle()
- Default:
- com.github.javaxcel.styler.NoStyleConfig.class
-
bodyStyle
Class<? extends com.github.javaxcel.styler.ExcelStyleConfig> bodyStyleConfiguration of common body style.This configuration is applied to all body cells.
- Returns:
- configuration of common body style
- See Also:
ExcelColumn.bodyStyle()
- Default:
- com.github.javaxcel.styler.NoStyleConfig.class
-