• 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/Image.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
public class Image {
×
24

25
    /**
26
     * Image ID
27
     */
28
    private String id;
29

30
    /**
31
     * Original width (in pixels) of the uploaded image.
32
     */
33
    private Long width;
34

35
    /**
36
     * Original height (in pixels) of the uploaded image.
37
     */
38
    private Long height;
39

40
    /**
41
     * Alternate text for the image.
42
     */
43
    private String altText;
44

45
    /**
46
     * Gets the image id.
47
     *
48
     * @return the image id
49
     */
50
    public String getId() {
51
        return id;
×
52
    }
53

54
    /**
55
     * Sets the image id
56
     */
57
    public Image setId(String id) {
58
        this.id = id;
×
59
        return this;
×
60
    }
61

62
    /**
63
     * gets the image ID
64
     *
65
     * @return the id
66
     */
67
    public String getImageId() {
68
        return id;
×
69
    }
70

71
    /**
72
     * sets the image ID
73
     *
74
     * @param id the id
75
     */
76
    public Image setImageId(String id) {
77
        this.id = id;
×
78
        return this;
×
79
    }
80

81
    /**
82
     * gets the width (in pixels) of the uploaded image
83
     */
84
    public Long getWidth() {
85
        return width;
×
86
    }
87

88
    /**
89
     * sets the width (in pixels)
90
     */
91
    public Image setWidth(Long width) {
92
        this.width = width;
×
93
        return this;
×
94
    }
95

96
    /**
97
     * gets the height (in pixels) of the uploaded image
98
     *
99
     * @return the height
100
     */
101
    public Long getHeight() {
102
        return height;
×
103
    }
104

105
    /**
106
     * sets the width (in pixels) of the uploaded image
107
     */
108
    public Image setHeight(Long height) {
109
        this.height = height;
×
110
        return this;
×
111
    }
112

113
    /**
114
     * get the alternate text (altText) for the image.
115
     *
116
     * @return altText
117
     */
118
    public String getAltText() {
119
        return altText;
×
120
    }
121

122
    /**
123
     * set the alternate text (altText) for the image.
124
     */
125
    public Image setAltText(String altText) {
126
        this.altText = altText;
×
127
        return this;
×
128
    }
129
}
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