Skip to content

Commit a5ca728

Browse files
committed
Initial commit (#241).
1 parent 590867a commit a5ca728

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
package org.gitlab4j.api.models;
2+
3+
import javax.xml.bind.annotation.XmlAccessType;
4+
import javax.xml.bind.annotation.XmlAccessorType;
5+
import javax.xml.bind.annotation.XmlRootElement;
6+
7+
import org.gitlab4j.api.utils.JacksonJsonEnumHelper;
8+
9+
import com.fasterxml.jackson.annotation.JsonCreator;
10+
import com.fasterxml.jackson.annotation.JsonValue;
11+
12+
@XmlRootElement
13+
@XmlAccessorType(XmlAccessType.FIELD)
14+
public class Artifact {
15+
16+
public enum FileType {
17+
ARCHIVE, METADATA, TRACE, JUNIT;
18+
19+
private static JacksonJsonEnumHelper<FileType> enumHelper = new JacksonJsonEnumHelper<>(FileType.class, true);
20+
21+
@JsonCreator
22+
public static FileType forValue(String value) {
23+
return enumHelper.forValue(value);
24+
}
25+
26+
@JsonValue
27+
public String toValue() {
28+
return (enumHelper.toString(this));
29+
}
30+
31+
@Override
32+
public String toString() {
33+
return (enumHelper.toString(this));
34+
}
35+
}
36+
37+
private FileType fileType;
38+
private Integer size;
39+
private String filename;
40+
private String fileFormat;
41+
42+
public FileType getFileType() {
43+
return fileType;
44+
}
45+
46+
public void setFileType(FileType fileType) {
47+
this.fileType = fileType;
48+
}
49+
50+
public Integer getSize() {
51+
return size;
52+
}
53+
54+
public void setSize(Integer size) {
55+
this.size = size;
56+
}
57+
58+
public String getFilename() {
59+
return filename;
60+
}
61+
62+
public void setFilename(String filename) {
63+
this.filename = filename;
64+
}
65+
66+
public String getFileFormat() {
67+
return fileFormat;
68+
}
69+
70+
public void setFileFormat(String fileFormat) {
71+
this.fileFormat = fileFormat;
72+
}
73+
}

0 commit comments

Comments
 (0)