com.base.Models.Media.setMime_type(String)   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
rs 10
cc 1
1
package com.base.Models;
2
3
import java.util.Map;
4
5
public class Media extends BaseModel {
6
7
    /**
8
     * name
9
     */
10
    protected String name;
11
12
    /**
13
     * file_name
14
     */
15
    protected String file_name;
16
17
    /**
18
     * collection_name
19
     */
20
    protected String collection_name;
21
22
    /**
23
     * mime_type
24
     */
25
    protected String mime_type;
26
27
    /**
28
     * size
29
     */
30
    protected int size;
31
32
    /**
33
     * custom_properties
34
     */
35
    protected Object[] custom_properties;
36
37
    /**
38
     * manipulations
39
     */
40
    protected Object[] manipulations;
41
42
    /**
43
     * url
44
     */
45
    protected Map<String, String> url;
46
47
    /**
48
     * Return Media Name
49
     *
50
     * @return
51
     */
52
    public String getName() {
53
        return name;
54
    }
55
56
    /**
57
     * Set Media Name
58
     *
59
     * @param name
60
     * @return
61
     */
62
    public Media setName(String name) {
63
        this.name = name;
64
        return this;
65
    }
66
67
    /**
68
     * Return Media File_name
69
     *
70
     * @return
71
     */
72
    public String getFile_name() {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
73
        return file_name;
74
    }
75
76
    /**
77
     * Set Media File_name
78
     *
79
     * @param file_name
80
     * @return
81
     */
82
    public Media setFile_name(String file_name) {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
83
        this.file_name = file_name;
84
        return this;
85
    }
86
87
    /**
88
     * Return Media Collection_name
89
     *
90
     * @return
91
     */
92
    public String getCollection_name() {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
93
        return collection_name;
94
    }
95
96
    /**
97
     * Set Media Collection_name
98
     *
99
     * @param collection_name
100
     * @return
101
     */
102
    public Media setCollection_name(String collection_name) {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
103
        this.collection_name = collection_name;
104
        return this;
105
    }
106
107
    /**
108
     * Return Media Mime_type
109
     *
110
     * @return
111
     */
112
    public String getMime_type() {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
113
        return mime_type;
114
    }
115
116
    /**
117
     * Set Media Mime_type
118
     *
119
     * @param mime_type
120
     * @return
121
     */
122
    public Media setMime_type(String mime_type) {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
123
        this.mime_type = mime_type;
124
        return this;
125
    }
126
127
    /**
128
     * Return Media Size
129
     *
130
     * @return
131
     */
132
    public int getSize() {
133
        return size;
134
    }
135
136
    /**
137
     * Set Media Size
138
     *
139
     * @param size
140
     * @return
141
     */
142
    public Media setSize(int size) {
143
        this.size = size;
144
        return this;
145
    }
146
147
    /**
148
     * Return Media Custom_properties
149
     *
150
     * @return
151
     */
152
    public Object[] getCustom_properties() {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
153
        return custom_properties;
154
    }
155
156
    /**
157
     * Set Media Custom_properties
158
     *
159
     * @param custom_properties
160
     * @return
161
     */
162
    public Media setCustom_properties(Object[] custom_properties) {
0 ignored issues
show
Coding Style introduced by
As per the Java conventions, method names should start with a lowercase letter followed by lower and upper case letters and digits. Use camel case to denote new words in the method name.
Loading history...
163
        this.custom_properties = custom_properties;
164
        return this;
165
    }
166
167
    /**
168
     * Return Media Manipulations
169
     *
170
     * @return
171
     */
172
    public Object[] getManipulations() {
173
        return manipulations;
174
    }
175
176
    /**
177
     * Set Media Manipulations
178
     *
179
     * @param manipulations
180
     * @return
181
     */
182
    public Media setManipulations(Object[] manipulations) {
183
        this.manipulations = manipulations;
184
        return this;
185
    }
186
187
    /**
188
     * Return Media Url
189
     *
190
     * @return
191
     */
192
    public Map<String, String> getUrl() {
193
        return this.url;
194
    }
195
196
    /**
197
     * Set Media Url
198
     *
199
     * @param url
200
     * @return
201
     */
202
    public Media setUrl(Map<String, String> url) {
203
        this.url = url;
204
        return this;
205
    }
206
207
    /**
208
     * Return Media Url
209
     *
210
     * @param size
211
     * @return
212
     */
213
    public String getUrl(String size) {
214
        return this.url.get(size);
215
    }
216
}
217