• 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/Hyperlink.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.fasterxml.jackson.annotation.JsonIgnore;
24

25
public class Hyperlink {
×
26
    /**
27
     * When the hyperlink is a URL link, this property will contain the URL value.
28
     * When the hyperlink is a Sheet/Report link (i.e. sheetId or reportId is non-null),
29
     * this property will contain the permalink to the Sheet or Report.
30
     */
31
    private String url;
32

33
    /**
34
     * If non-null, this hyperlink is a link to the Sheet with this ID..
35
     */
36
    private Long sheetId;
37

38
    /**
39
     * If non-null, this hyperlink is a link to the Report with this ID.
40
     */
41
    private Long reportId;
42

43
    /**
44
     * If non-null, this hyperlink is a link to the Sort with this ID.
45
     */
46
    private Long sightId;
47
    /**
48
     * If true, update will serialize a null to reset the hyperlink
49
     */
50
    private boolean isNull = true;
×
51

52
    /**
53
     * Gets the url
54
     *
55
     * @return the url
56
     */
57
    public String getUrl() {
58
        return url;
×
59
    }
60

61
    /**
62
     * Sets the url
63
     *
64
     * @param url the urk
65
     */
66
    public Hyperlink setUrl(String url) {
67
        this.isNull = false;
×
68
        this.url = url;
×
69
        return this;
×
70
    }
71

72
    /**
73
     * Gets the link to the Sheet with this ID.
74
     *
75
     * @return the sheet id
76
     */
77
    public Long getSheetId() {
78
        return sheetId;
×
79
    }
80

81
    /**
82
     * Sets the link to the Sheet with this ID.
83
     *
84
     * @param sheetId the sheet Id
85
     */
86
    public Hyperlink setSheetId(Long sheetId) {
87
        this.isNull = false;
×
88
        this.sheetId = sheetId;
×
89
        return this;
×
90
    }
91

92
    /**
93
     * Gets a link to the Report with this ID.
94
     *
95
     * @return the report Id
96
     */
97
    public Long getReportId() {
98
        return reportId;
×
99
    }
100

101
    /**
102
     * Sets a link to the Report with this ID.
103
     *
104
     * @param reportId the report Id
105
     */
106
    public Hyperlink setReportId(Long reportId) {
107
        this.isNull = false;
×
108
        this.reportId = reportId;
×
109
        return this;
×
110
    }
111

112
    /**
113
     * Gets the link to the Sight with this ID.
114
     *
115
     * @return the sight id
116
     */
117
    public Long getSightId() {
118
        return sightId;
×
119
    }
120

121
    /**
122
     * Sets the link to the Sight with this ID.
123
     *
124
     * @param sightId the sight Id
125
     */
126
    public Hyperlink setSightId(Long sightId) {
127
        this.isNull = false;
×
128
        this.sightId = sightId;
×
129
        return this;
×
130
    }
131

132
    /**
133
     * Get the value of the isNull flag
134
     *
135
     * @return value of isNull flag
136
     */
137
    @JsonIgnore
138
    public boolean isNull() {
139
        return this.isNull;
×
140
    }
141
}
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