• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smartsheet / smartsheet-java-sdk / #43

24 Aug 2023 10:26PM UTC coverage: 50.427% (-0.02%) from 50.442%
#43

push

github-actions

web-flow
Fix Checkstyle violations in api/models Classes (#57)

This will fix ~900 violations

189 of 189 new or added lines in 59 files covered. (100.0%)

3423 of 6788 relevant lines covered (50.43%)

0.5 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/smartsheet/api/models/CellDataItem.java
1
package com.smartsheet.api.models;
2

3
/*
4
 * #[license]
5
 * Smartsheet SDK for Java
6
 * %%
7
 * Copyright (C) 2023 Smartsheet
8
 * %%
9
 * Licensed under the Apache License, Version 2.0 (the "License");
10
 * you may not use this file except in compliance with the License.
11
 * You may obtain a copy of the License at
12
 *
13
 *      http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing, software
16
 * distributed under the License is distributed on an "AS IS" BASIS,
17
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
 * See the License for the specific language governing permissions and
19
 * limitations under the License.
20
 * %[license]
21
 */
22

23
import com.smartsheet.api.models.format.Format;
24

25
public class CellDataItem {
×
26

27
    /**
28
     * Column Id for the cell
29
     */
30
    private Long columnId;
31

32
    /**
33
     * Row Id for each item
34
     */
35
    private Long rowId;
36

37
    /**
38
     * Sheet Id for each item
39
     */
40
    private Long sheetId;
41

42
    /**
43
     * The type of data returned will depend on the cell type and the data in the cell
44
     */
45
    private Object objectValue;
46

47
    /**
48
     * The cell object
49
     */
50
    private Cell cell;
51

52
    /**
53
     * CELL or SUMMARY_FIELD
54
     */
55
    private String dataSource;
56

57
    /**
58
     * Label for the data point. This will either be the column name or a user-provided string.
59
     */
60
    private String label;
61

62
    /**
63
     * Format descriptor for the label
64
     */
65
    private Format labelFormat;
66

67
    /**
68
     * The display order for the CellDataItem
69
     */
70
    private Integer order;
71

72
    /**
73
     * The format descriptor for the value
74
     */
75
    private Format valueFormat;
76

77
    /**
78
     * SummaryField object if dataSource is SUMMARY_FIELD
79
     */
80
    private SummaryField profileField;
81

82
    /**
83
     * Get the column Id for the cell.
84
     *
85
     * @return columnId
86
     */
87
    public Long getColumnId() {
88
        return columnId;
×
89
    }
90

91
    /**
92
     * Set the column Id for the cell.
93
     */
94
    public CellDataItem setColumnId(Long columnId) {
95
        this.columnId = columnId;
×
96
        return this;
×
97
    }
98

99
    /**
100
     * Get the row Id for the item
101
     *
102
     * @return rowId
103
     */
104
    public Long getRowId() {
105
        return rowId;
×
106
    }
107

108
    /**
109
     * Set the row Id for the item
110
     */
111
    public CellDataItem setRowId(Long rowId) {
112
        this.rowId = rowId;
×
113
        return this;
×
114
    }
115

116
    /**
117
     * Get the sheet Id for the item
118
     */
119
    public Long getSheetId() {
120
        return sheetId;
×
121
    }
122

123
    /**
124
     * Set the sheet Id for the item
125
     */
126
    public CellDataItem setSheetId(Long sheetId) {
127
        this.sheetId = sheetId;
×
128
        return this;
×
129
    }
130

131
    /**
132
     * Get the object for this CellDataItem. The type of the data returned will depend on
133
     * the cell type and the data in the cell.
134
     *
135
     * @return objectValue
136
     */
137
    public Object getObjectValue() {
138
        return objectValue;
×
139
    }
140

141
    /**
142
     * Set the object for this CellDataItem. The type of the data returned will depend on
143
     * the cell type and the data in the cell.
144
     */
145
    public CellDataItem setObjectValue(Object objectValue) {
146
        this.objectValue = objectValue;
×
147
        return this;
×
148
    }
149

150
    /**
151
     * Get the cell object
152
     *
153
     * @return cell
154
     */
155
    public Cell getCell() {
156
        return cell;
×
157
    }
158

159
    /**
160
     * Set the cell object
161
     */
162
    public CellDataItem setCell(Cell cell) {
163
        this.cell = cell;
×
164
        return this;
×
165
    }
166

167
    /**
168
     * Gets the data source (currently CELL)
169
     *
170
     * @return CELL
171
     */
172
    public String getDataSource() {
173
        return dataSource;
×
174
    }
175

176
    /**
177
     * Sets the data source
178
     */
179
    public CellDataItem setDataSource(String dataSource) {
180
        this.dataSource = dataSource;
×
181
        return this;
×
182
    }
183

184
    /**
185
     * Get the label for the data point.
186
     *
187
     * @return label
188
     */
189
    public String getLabel() {
190
        return label;
×
191
    }
192

193
    /**
194
     * Set the label for the data point.
195
     */
196
    public CellDataItem setLabel(String label) {
197
        this.label = label;
×
198
        return this;
×
199
    }
200

201
    /**
202
     * Get the format descriptor for the label
203
     *
204
     * @return labelFormat
205
     */
206
    public Format getLabelFormat() {
207
        return labelFormat;
×
208
    }
209

210
    /**
211
     * Set the format descriptor for the label
212
     */
213
    public CellDataItem setLabelFormat(Format labelFormat) {
214
        this.labelFormat = labelFormat;
×
215
        return this;
×
216
    }
217

218
    /**
219
     * Get the display order for the CellDataItem
220
     *
221
     * @return order
222
     */
223
    public Integer getOrder() {
224
        return order;
×
225
    }
226

227
    /**
228
     * Set the display order for the CellDataItem
229
     */
230
    public CellDataItem setOrder(Integer order) {
231
        this.order = order;
×
232
        return this;
×
233
    }
234

235
    /**
236
     * Get the format descriptor for the cell value
237
     *
238
     * @return valueFormat
239
     */
240
    public Format getValueFormat() {
241
        return valueFormat;
×
242
    }
243

244
    /**
245
     * Set the format descriptor for the cell value
246
     */
247
    public CellDataItem setValueFormat(Format valueFormat) {
248
        this.valueFormat = valueFormat;
×
249
        return this;
×
250
    }
251

252
    /**
253
     * Get the SummaryField when dataSource is SUMMARY_FIELD
254
     *
255
     * @return summaryField
256
     */
257
    public SummaryField getProfileField() {
258
        return profileField;
×
259
    }
260

261
    /**
262
     * Sets the SummaryField if dataSource is SUMMARY_FIELD
263
     */
264
    public CellDataItem setProfileField(SummaryField profileField) {
265
        this.profileField = profileField;
×
266
        return this;
×
267
    }
268
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc