1
|
package eu.dnetlib.goldoa.domain;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
4
|
|
5
|
/**
|
6
|
* Created by panagiotis on 12/2/2017.
|
7
|
*/
|
8
|
public enum PublicationType implements IsSerializable {
|
9
|
ARTICLE("article"),
|
10
|
MONOGRAPH("monograph"),
|
11
|
BOOK_CHAPTER("book chapter"),
|
12
|
CONFERENCE_PROCS("Conference Procs");
|
13
|
|
14
|
public static PublicationType getEnum(String code) {
|
15
|
switch (code) {
|
16
|
case "article":
|
17
|
return ARTICLE;
|
18
|
case "monograph":
|
19
|
return MONOGRAPH;
|
20
|
case "book chapter":
|
21
|
return BOOK_CHAPTER;
|
22
|
case "Conference Procs":
|
23
|
return CONFERENCE_PROCS;
|
24
|
default:
|
25
|
return null;
|
26
|
}
|
27
|
}
|
28
|
|
29
|
|
30
|
private String type;
|
31
|
|
32
|
PublicationType(String type) {
|
33
|
this.type = type;
|
34
|
}
|
35
|
|
36
|
public String getType() {
|
37
|
return type;
|
38
|
}
|
39
|
}
|