Class CsvSchema.Column
java.lang.Object
com.fasterxml.jackson.dataformat.csv.CsvSchema.Column
- All Implemented Interfaces:
Serializable
- Enclosing class:
CsvSchema
Representation of info for a single column
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
NOTE: type changed from `char` to `java.lang.String` in 2.7private final int
private final String
private final CsvSchema.Column
Link to the next column within schema, if one exists; null for the last column.private final CsvSchema.ColumnType
private final CsvValueDecorator
Value decorator used for this column, if any;null
if none.static final CsvSchema.Column
private static final long
-
Constructor Summary
ConstructorsModifierConstructorDescriptionColumn
(int index, String name, CsvSchema.ColumnType type) Column
(int index, String name, CsvSchema.ColumnType type, String arrayElementSep) protected
Column
(CsvSchema.Column src, int index, CsvSchema.Column next) protected
Column
(CsvSchema.Column src, int index, CsvValueDecorator valueDecorator, CsvSchema.Column next) Column
(CsvSchema.Column src, CsvSchema.Column next) protected
Column
(CsvSchema.Column src, CsvValueDecorator valueDecorator) -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
getName()
getNext()
getNextWithName
(String name) Access that returns same asgetNext()
iff name of that column is same as given namegetType()
boolean
boolean
isArray()
withArrayElementSeparator
(String separator) withNext
(int index, CsvSchema.Column next) withNext
(CsvSchema.Column next) withType
(CsvSchema.ColumnType newType) withValueDecorator
(CsvValueDecorator valueDecorator)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
PLACEHOLDER
-
_name
-
_index
private final int _index -
_type
-
_arrayElementSeparator
NOTE: type changed from `char` to `java.lang.String` in 2.7- Since:
- 2.5
-
_valueDecorator
Value decorator used for this column, if any;null
if none. Used to add decoration on serialization (writing) and remove decoration on deserialization (reading).- Since:
- 2.18
-
_next
Link to the next column within schema, if one exists; null for the last column.- Since:
- 2.6
-
-
Constructor Details
-
Column
-
Column
-
Column
-
Column
-
Column
-
Column
- Since:
- 2.18
-
Column
protected Column(CsvSchema.Column src, int index, CsvValueDecorator valueDecorator, CsvSchema.Column next) - Since:
- 2.18
-
-
Method Details
-
withName
-
withType
-
withArrayElementSeparator
-
withValueDecorator
- Since:
- 2.18
-
withNext
-
withNext
- Since:
- 2.7
-
getIndex
public int getIndex() -
getName
-
getType
-
getNext
-
getNextWithName
Access that returns same asgetNext()
iff name of that column is same as given name -
hasName
-
getArrayElementSeparator
- Since:
- 2.5
-
getValueDecorator
- Since:
- 2.18
-
isArray
public boolean isArray()
-