2
* Licensed to the Apache Software Foundation (ASF) under one
3
* or more contributor license agreements. See the NOTICE file
4
* distributed with this work for additional information
5
* regarding copyright ownership. The ASF licenses this file
6
* to you under the Apache License, Version 2.0 (the
7
* "License"); you may not use this file except in compliance
8
* with the License. You may obtain a copy of the License at
10
* http://www.apache.org/licenses/LICENSE-2.0
12
* Unless required by applicable law or agreed to in writing,
13
* software distributed under the License is distributed on an
14
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
* KIND, either express or implied. See the License for the
16
* specific language governing permissions and limitations
19
package org.apache.commons.csv.writer;
24
* @author Martin van den Bemt
27
public class CSVField {
32
private boolean overrideFill;
41
* @param name the name of the field
43
public CSVField(String name) {
48
* @param name the name of the field
49
* @param size the size of the field
51
public CSVField(String name, int size) {
57
* @return the name of the field
59
public String getName() {
64
* Set the name of the field
65
* @param name the name
67
public void setName(String name) {
73
* @return the size of the field
75
public int getSize() {
80
* Set the size of the field.
81
* The size will be ignored when fixedwidth is set to false in the CSVConfig
82
* @param size the size of the field.
84
public void setSize(int size) {
89
* @return the fill pattern.
91
public int getFill() {
96
* Sets overrideFill to true.
97
* @param fill the file pattern
99
public void setFill(int fill) {
105
* Does this field override fill ?
109
public boolean overrideFill() {