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 StringNOTE: type changed from `char` to `java.lang.String` in 2.7private final intprivate final Stringprivate final CsvSchema.ColumnLink to the next column within schema, if one exists; null for the last column.private final CsvSchema.ColumnTypeprivate final CsvValueDecoratorValue decorator used for this column, if any;nullif none.static final CsvSchema.Columnprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionColumn(int index, String name, CsvSchema.ColumnType type) Column(int index, String name, CsvSchema.ColumnType type, String arrayElementSep) protectedColumn(CsvSchema.Column src, int index, CsvSchema.Column next) protectedColumn(CsvSchema.Column src, int index, CsvValueDecorator valueDecorator, CsvSchema.Column next) Column(CsvSchema.Column src, CsvSchema.Column next) protectedColumn(CsvSchema.Column src, CsvValueDecorator valueDecorator) -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()getName()getNext()getNextWithName(String name) Access that returns same asgetNext()iff name of that column is same as given namegetType()booleanbooleanisArray()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;nullif 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()
-