• 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/CrossSheetReference.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.CrossSheetReferenceStatus;
24

25
public class CrossSheetReference extends NamedModel<Long> {
×
26

27
    /**
28
     * the final column in the reference block
29
     */
30
    private Long endColumnId;
31

32
    /**
33
     * The last row in the reference block
34
     */
35
    private Long endRowId;
36

37
    /**
38
     * The source sheet ID for the reference block
39
     */
40
    private Long sourceSheetId;
41

42
    /**
43
     * The first column of the reference block
44
     */
45
    private Long startColumnId;
46

47
    /**
48
     * The first row of the reference block
49
     */
50
    private Long startRowId;
51

52
    /**
53
     * The status of the cross sheet reference
54
     */
55
    private CrossSheetReferenceStatus status;
56

57
    /**
58
     * Provide an 'override' of setName (returns CrossSheetReference not NamedModel)
59
     *
60
     * @param name the new name
61
     */
62
    public CrossSheetReference setName(String name) {
63
        super.setName(name);
×
64
        return this;
×
65
    }
66

67
    /**
68
     * Get the last column ID in the cross sheet reference block
69
     *
70
     * @return the last column ID
71
     */
72
    public Long getEndColumnId() {
73
        return endColumnId;
×
74
    }
75

76
    /**
77
     * Set the last column ID in the cross sheet reference block
78
     *
79
     * @param endColumnId the last column ID
80
     */
81
    public CrossSheetReference setEndColumnId(Long endColumnId) {
82
        this.endColumnId = endColumnId;
×
83
        return this;
×
84
    }
85

86
    /**
87
     * Get the last row ID in the cross sheet reference block
88
     *
89
     * @return the last row ID
90
     */
91
    public Long getEndRowId() {
92
        return endRowId;
×
93
    }
94

95
    /**
96
     * Set the last row ID in the cross sheet reference block
97
     *
98
     * @param endRowId the last row ID
99
     */
100
    public CrossSheetReference setEndRowId(Long endRowId) {
101
        this.endRowId = endRowId;
×
102
        return this;
×
103
    }
104

105
    /**
106
     *Get the source sheet ID for the cross sheet reference
107
     *
108
     * @return the source sheet ID
109
     */
110
    public Long getSourceSheetId() {
111
        return sourceSheetId;
×
112
    }
113

114
    /**
115
     * Set the source sheet ID for the cross sheet reference
116
     *
117
     * @param sourceSheetId the source sheet ID
118
     */
119
    public CrossSheetReference setSourceSheetId(Long sourceSheetId) {
120
        this.sourceSheetId = sourceSheetId;
×
121
        return this;
×
122
    }
123

124
    /**
125
     * Get the start column ID for the cross sheet reference block
126
     *
127
     * @return the start column ID
128
     */
129
    public Long getStartColumnId() {
130
        return startColumnId;
×
131
    }
132

133
    /**
134
     * Set the start column ID for the cross sheet reference block
135
     *
136
     * @param startColumnId the start column ID
137
     */
138
    public CrossSheetReference setStartColumnId(Long startColumnId) {
139
        this.startColumnId = startColumnId;
×
140
        return this;
×
141
    }
142

143
    /**
144
     * Get the start row ID for the cross sheet reference block
145
     *
146
     * @return the start row ID
147
     */
148
    public Long getStartRowId() {
149
        return startRowId;
×
150
    }
151

152
    /**
153
     * Set the start row ID for the cross sheet reference block
154
     *
155
     * @param startRowId the start row ID
156
     */
157
    public CrossSheetReference setStartRowId(Long startRowId) {
158
        this.startRowId = startRowId;
×
159
        return this;
×
160
    }
161

162
    /**
163
     * Get the status of the cross sheet reference
164
     *
165
     * @return CrossSheetReferenceStatus enum
166
     */
167
    public CrossSheetReferenceStatus getStatus() {
168
        return status;
×
169
    }
170

171
    /**
172
     * Set the status of the cross sheet reference
173
     *
174
     * @param status CrossSheetReferenceStatus enum
175
     */
176
    public CrossSheetReference setStatus(CrossSheetReferenceStatus status) {
177
        this.status = status;
×
178
        return this;
×
179
    }
180
}
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