• 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/CellLinkWidgetContent.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 CellLinkWidgetContent implements WidgetContent {
×
28

29
    /**
30
     * The Id of the sheet from which the cell data originates
31
     */
32
    private Long sheetId;
33

34
    /**
35
     * Array of cell data items
36
     */
37
    private List<CellDataItem> cellData;
38

39
    /**
40
     * Array of column objects
41
     */
42
    private List<Column> columns;
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
     * Returns the type for this widget content object
51
     *
52
     * @return METRIC
53
     */
54
    @Override
55
    public WidgetType getWidgetType() {
56
        return WidgetType.METRIC;
×
57
    }
58

59
    /**
60
     * Get the ID of the sheet from which the cell data originates
61
     *
62
     * @return the sheet ID
63
     */
64
    public Long getSheetId() {
65
        return sheetId;
×
66
    }
67

68
    /**
69
     * Set the ID of the sheet from which the cell data originates
70
     */
71
    public CellLinkWidgetContent setSheetId(Long sheetId) {
72
        this.sheetId = sheetId;
×
73
        return this;
×
74
    }
75

76
    /**
77
     * Gets the array of cell data items
78
     */
79
    public List<CellDataItem> getCellData() {
80
        return cellData;
×
81
    }
82

83
    /**
84
     * Sets the array of cell data items
85
     */
86
    public CellLinkWidgetContent setCellData(List<CellDataItem> cellData) {
87
        this.cellData = cellData;
×
88
        return this;
×
89
    }
90

91
    /**
92
     * Gets the array of columns
93
     */
94
    public List<Column> getColumns() {
95
        return columns;
×
96
    }
97

98
    /**
99
     * Sets the array of columns
100
     */
101
    public CellLinkWidgetContent setColumns(List<Column> columns) {
102
        this.columns = columns;
×
103
        return this;
×
104
    }
105

106
    /**
107
     * Gets the widget hyperlink
108
     *
109
     * @return hyperlink
110
     */
111
    public WidgetHyperlink getHyperlink() {
112
        return hyperlink;
×
113
    }
114

115
    /**
116
     * Sets the widget hyperlink
117
     */
118
    public CellLinkWidgetContent setHyperlink(WidgetHyperlink hyperlink) {
119
        this.hyperlink = hyperlink;
×
120
        return this;
×
121
    }
122
}
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