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
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) Column
(CsvSchema.Column src, CsvSchema.Column next) -
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) withElementSeparator
(int separator) Deprecated.withNext
(int index, CsvSchema.Column next) withNext
(CsvSchema.Column next) withType
(CsvSchema.ColumnType newType)
-
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
-
_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
-
-
Method Details
-
withName
-
withType
-
withElementSeparator
Deprecated.usewithArrayElementSeparator(String)
instead -
withArrayElementSeparator
-
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
-
isArray
public boolean isArray()
-
withArrayElementSeparator(String)
instead