1
|
package eu.etaxonomy.cdm.jaxb;
|
2
|
|
3
|
import javax.xml.bind.annotation.XmlAccessType;
|
4
|
import javax.xml.bind.annotation.XmlAccessorType;
|
5
|
import javax.xml.bind.annotation.XmlElement;
|
6
|
import javax.xml.bind.annotation.XmlType;
|
7
|
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
8
|
|
9
|
import eu.etaxonomy.cdm.model.common.IIdentifiableEntity;
|
10
|
|
11
|
@XmlAccessorType(XmlAccessType.FIELD)
|
12
|
@XmlType(name = "Namespace", namespace="http://etaxonomy.eu/cdm/model/common/1.0", propOrder = {
|
13
|
"nspace",
|
14
|
"clazz"
|
15
|
})
|
16
|
public class Namespace {
|
17
|
|
18
|
@XmlElement(name = "NSpace", namespace="http://etaxonomy.eu/cdm/model/common/1.0", required = true)
|
19
|
private String nspace;
|
20
|
|
21
|
@XmlElement(name = "Class", namespace="http://etaxonomy.eu/cdm/model/common/1.0", required = true)
|
22
|
@XmlJavaTypeAdapter(ClassAdapter.class)
|
23
|
private Class<? extends IIdentifiableEntity> clazz;
|
24
|
|
25
|
public String getNSpace() {
|
26
|
return nspace;
|
27
|
}
|
28
|
|
29
|
public void setNSpace(String nspace) {
|
30
|
this.nspace = nspace;
|
31
|
}
|
32
|
|
33
|
public Class<? extends IIdentifiableEntity> getClazz() {
|
34
|
return clazz;
|
35
|
}
|
36
|
|
37
|
public void setClazz(Class<? extends IIdentifiableEntity> clazz) {
|
38
|
this.clazz = clazz;
|
39
|
}
|
40
|
}
|