Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
a5ca728b
Commit
a5ca728b
authored
Aug 28, 2018
by
Greg Messner
Browse files
Initial commit (#241).
parent
590867a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/Artifact.java
0 → 100644
View file @
a5ca728b
package
org.gitlab4j.api.models
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonValue
;
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Artifact
{
public
enum
FileType
{
ARCHIVE
,
METADATA
,
TRACE
,
JUNIT
;
private
static
JacksonJsonEnumHelper
<
FileType
>
enumHelper
=
new
JacksonJsonEnumHelper
<>(
FileType
.
class
,
true
);
@JsonCreator
public
static
FileType
forValue
(
String
value
)
{
return
enumHelper
.
forValue
(
value
);
}
@JsonValue
public
String
toValue
()
{
return
(
enumHelper
.
toString
(
this
));
}
@Override
public
String
toString
()
{
return
(
enumHelper
.
toString
(
this
));
}
}
private
FileType
fileType
;
private
Integer
size
;
private
String
filename
;
private
String
fileFormat
;
public
FileType
getFileType
()
{
return
fileType
;
}
public
void
setFileType
(
FileType
fileType
)
{
this
.
fileType
=
fileType
;
}
public
Integer
getSize
()
{
return
size
;
}
public
void
setSize
(
Integer
size
)
{
this
.
size
=
size
;
}
public
String
getFilename
()
{
return
filename
;
}
public
void
setFilename
(
String
filename
)
{
this
.
filename
=
filename
;
}
public
String
getFileFormat
()
{
return
fileFormat
;
}
public
void
setFileFormat
(
String
fileFormat
)
{
this
.
fileFormat
=
fileFormat
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment