• 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/ChartWidgetContent.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.enums.WidgetType;
24

25
import java.util.List;
26

27
public class ChartWidgetContent implements WidgetContent {
×
28

29
    /**
30
     *  Report Id denoting container source, if applicable
31
     */
32
    private Long reportId;
33

34
    /**
35
     * Sheet Id denoting container source, if applicable
36
     */
37
    private Long sheetId;
38

39
    /**
40
     * Array of Axes
41
     */
42
    private List<Object> axes;
43

44
    /**
45
     * The widget has when clicked attribute set to that hyperlink (if present and non-null)
46
     */
47
    private WidgetHyperlink hyperlink;
48

49
    /**
50
     * Array of columnIds if the range was selected through the UI
51
     */
52
    private List<Long> includedColumnIds;
53

54
    /**
55
     * The location in the widget where Smartsheet renders the legend, for example, RIGHT
56
     */
57
    private Object legend;
58

59
    /**
60
     * selection range if the source is a sheet
61
     */
62
    private List<SelectionRange> selectionRanges;
63

64
    /**
65
     * Array of Series objects
66
     */
67
    private List<Object> series;
68

69
    /**
70
     * Returns the type for this widget content object
71
     *
72
     * @return CHART
73
     */
74
    @Override
75
    public WidgetType getWidgetType() {
76
        return WidgetType.CHART;
×
77
    }
78

79
    /**
80
     * Gets the report ID denoting container source, if applicable
81
     *
82
     * @return the report ID
83
     */
84
    public Long getReportId() {
85
        return reportId;
×
86
    }
87

88
    /**
89
     * Sets the report ID denoting container source, if applicable
90
     */
91
    public ChartWidgetContent setReportId(Long reportId) {
92
        this.reportId = reportId;
×
93
        return this;
×
94
    }
95

96
    /**
97
     * Gets the sheet ID denoting container source, if applicable
98
     *
99
     * @return the sheet ID
100
     */
101
    public Long getSheetId() {
102
        return sheetId;
×
103
    }
104

105
    /**
106
     * Sets the sheet ID denoting container source, if applicable
107
     */
108
    public ChartWidgetContent setSheetId(Long sheetId) {
109
        this.sheetId = sheetId;
×
110
        return this;
×
111
    }
112

113
    /**
114
     * Gets the array of axes
115
     *
116
     * @return the axes
117
     */
118
    public List<Object> getAxes() {
119
        return axes;
×
120
    }
121

122
    /**
123
     * Sets the array of axes
124
     */
125
    public ChartWidgetContent setAxes(List<Object> axes) {
126
        this.axes = axes;
×
127
        return this;
×
128
    }
129

130
    /**
131
     * Gets the hyperlink associated with this Widget
132
     *
133
     * @return the hyperlink
134
     */
135
    public WidgetHyperlink getHyperlink() {
136
        return hyperlink;
×
137
    }
138

139
    /**
140
     * Sets the hyperlink associated with this Widget
141
     */
142
    public ChartWidgetContent setHyperlink(WidgetHyperlink hyperlink) {
143
        this.hyperlink = hyperlink;
×
144
        return this;
×
145
    }
146

147
    /**
148
     * Gets the array of column IDs if the range was selected through the UI
149
     *
150
     * @return the array of column IDs
151
     */
152
    public List<Long> getIncludedColumnIds() {
153
        return includedColumnIds;
×
154
    }
155

156
    /**
157
     * Sets the array of column IDs if the range was selected through the UI
158
     */
159
    public ChartWidgetContent setIncludedColumnIds(List<Long> includedColumnIds) {
160
        this.includedColumnIds = includedColumnIds;
×
161
        return this;
×
162
    }
163

164
    /**
165
     * Gets the location in the widget where Smartsheet renders the legend
166
     *
167
     * @return the legend
168
     */
169
    public Object getLegend() {
170
        return legend;
×
171
    }
172

173
    /**
174
     * Sets the location in the widget where Smartsheet renders the legend
175
     */
176
    public ChartWidgetContent setLegend(Object legend) {
177
        this.legend = legend;
×
178
        return this;
×
179
    }
180

181
    /**
182
     * Gets the selection range if the source is a sheet
183
     *
184
     * @return the selection range
185
     */
186
    public List<SelectionRange> getSelectionRanges() {
187
        return selectionRanges;
×
188
    }
189

190
    /**
191
     * Sets the selection range if the source is a sheet
192
     */
193
    public ChartWidgetContent setSelectionRanges(List<SelectionRange> selectionRanges) {
194
        this.selectionRanges = selectionRanges;
×
195
        return this;
×
196
    }
197

198
    /**
199
     * Gets the array os series objects
200
     *
201
     * @return the array of series objects
202
     */
203
    public List<Object> getSeries() {
204
        return series;
×
205
    }
206

207
    /**
208
     * Sets the array of series objects
209
     */
210
    public ChartWidgetContent setSeries(List<Object> series) {
211
        this.series = series;
×
212
        return this;
×
213
    }
214
}
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