public class DocumentTableColumn
extends java.lang.Object
DocumentTable
object.Modifier and Type | Method and Description |
---|---|
boolean |
getAllowsNull()
Gets a value indicating whether cells in this column contain null values or not.
|
int |
getIndexInDocument()
Gets the original zero-based index of the corresponding table column as per the source document.
|
java.lang.String |
getName()
Gets the name of this column used to access the column's data in a template document passed to
DocumentAssembler . |
java.lang.Class |
getType()
Gets the type of cell values in this column.
|
void |
setName(java.lang.String value)
Sets the name of this column used to access the column's data in a template document passed to
DocumentAssembler . |
void |
setType(java.lang.Class value)
Sets the type of cell values in this column.
|
public java.lang.String getName()
DocumentAssembler
.
If the column's name is read from a document (see DocumentTableOptions.getFirstRowContainsColumnNames()
/ DocumentTableOptions.setFirstRowContainsColumnNames(boolean)
), the name is automatically corrected so that it to be valid. However, if the column's name is set manually through this property and the name is invalid, an exception is thrown.
The column's name is considered to be valid, if the following conditions are met:
DocumentTable
object does not contain a DocumentTableColumn
instance with the same name.
DocumentAssembler
.public void setName(java.lang.String value)
DocumentAssembler
.
If the column's name is read from a document (see DocumentTableOptions.getFirstRowContainsColumnNames()
/ DocumentTableOptions.setFirstRowContainsColumnNames(boolean)
), the name is automatically corrected so that it to be valid. However, if the column's name is set manually through this property and the name is invalid, an exception is thrown.
The column's name is considered to be valid, if the following conditions are met:
DocumentTable
object does not contain a DocumentTableColumn
instance with the same name.
value
- The name of this column used to access the column's data in a template document passed to DocumentAssembler
.public int getIndexInDocument()
DocumentTableOptions
specified, this index may differ from the index of this DocumentTableColumn
instance within the column collection of the corresponding DocumentTable
instance.public java.lang.Class getType()
For documents of non-Spreadsheet file formats, the initial type is always automatically determined as string. For documents of Spreadsheet file formats, the initial type is automatically determined depending on corresponding cell values.
If cells of a particular Spreadsheet column contain values of different types, then the column's initial type is also automatically determined as string.
public void setType(java.lang.Class value)
For documents of non-Spreadsheet file formats, the initial type is always automatically determined as string. For documents of Spreadsheet file formats, the initial type is automatically determined depending on corresponding cell values.
If cells of a particular Spreadsheet column contain values of different types, then the column's initial type is also automatically determined as string.
value
- The type of cell values in this column.public boolean getAllowsNull()