Project

General

Profile

Download (3.38 KB) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.cdm.remote.dto.oaipmh;
2

    
3
import java.net.URI;
4

    
5
import javax.xml.bind.annotation.XmlAccessType;
6
import javax.xml.bind.annotation.XmlAccessorType;
7
import javax.xml.bind.annotation.XmlElement;
8
import javax.xml.bind.annotation.XmlRootElement;
9
import javax.xml.bind.annotation.XmlType;
10
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
11

    
12
import org.joda.time.DateTime;
13

    
14
import eu.etaxonomy.cdm.jaxb.DateTimeAdapter;
15

    
16
@XmlAccessorType(XmlAccessType.FIELD)
17
@XmlType(name = "oai_dcType", namespace = "http://www.openarchives.org/OAI/2.0/oai_dc/", propOrder = {
18
    "title",
19
    "creator",
20
    "subject",
21
    "publisher",
22
    "date",
23
    "format",
24
    "identifier",
25
    "source",
26
    "language",
27
    "coverage",
28
    "rights"
29
})
30
@XmlRootElement(name = "dc", namespace = "http://www.openarchives.org/OAI/2.0/oai_dc/")
31
public class OaiDc {
32
	@XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
33
    private String title;
34
	
35
	@XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
36
    private String creator;
37
	
38
	@XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
39
    private String subject;
40
	
41
	@XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
42
    private String publisher;
43
	
44
    @XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
45
    @XmlJavaTypeAdapter(DateTimeAdapter.class)
46
    private DateTime date;
47
    
48
    @XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
49
    private String format;
50
    
51
    @XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
52
    private URI identifier;
53
    
54
    @XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
55
    private String source;
56
    
57
    @XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
58
    private String language;
59
    
60
    @XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
61
    private String coverage;
62
    
63
    @XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
64
    private String rights;
65
    
66
    public String getTitle() {
67
		return title;
68
	}
69

    
70
	public void setTitle(String title) {
71
		this.title = title;
72
	}
73

    
74
	public String getCreator() {
75
		return creator;
76
	}
77

    
78
	public void setCreator(String creator) {
79
		this.creator = creator;
80
	}
81

    
82
	public String getSubject() {
83
		return subject;
84
	}
85

    
86
	public void setSubject(String subject) {
87
		this.subject = subject;
88
	}
89

    
90
	public String getPublisher() {
91
		return publisher;
92
	}
93

    
94
	public void setPublisher(String publisher) {
95
		this.publisher = publisher;
96
	}
97

    
98
	public DateTime getDate() {
99
		return date;
100
	}
101

    
102
	public void setDate(DateTime date) {
103
		this.date = date;
104
	}
105

    
106
	public String getFormat() {
107
		return format;
108
	}
109

    
110
	public void setFormat(String format) {
111
		this.format = format;
112
	}
113

    
114
	public URI getIdentifier() {
115
		return identifier;
116
	}
117

    
118
	public void setIdentifier(URI identifier) {
119
		this.identifier = identifier;
120
	}
121

    
122
	public String getSource() {
123
		return source;
124
	}
125

    
126
	public void setSource(String source) {
127
		this.source = source;
128
	}
129

    
130
	public String getLanguage() {
131
		return language;
132
	}
133

    
134
	public void setLanguage(String language) {
135
		this.language = language;
136
	}
137

    
138
	public String getCoverage() {
139
		return coverage;
140
	}
141

    
142
	public void setCoverage(String coverage) {
143
		this.coverage = coverage;
144
	}
145

    
146
	public String getRights() {
147
		return rights;
148
	}
149

    
150
	public void setRights(String rights) {
151
		this.rights = rights;
152
	}
153
}
(18-18/27)