Project

General

Profile

Download (1.42 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/ 
9

    
10
package eu.etaxonomy.cdm.jaxb;
11

    
12
import javax.xml.bind.annotation.XmlAccessType;
13
import javax.xml.bind.annotation.XmlAccessorType;
14
import javax.xml.bind.annotation.XmlElement;
15
import javax.xml.bind.annotation.XmlType;
16
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
17

    
18
import eu.etaxonomy.cdm.model.common.IIdentifiableEntity;
19

    
20
@XmlAccessorType(XmlAccessType.FIELD)
21
@XmlType(name = "Namespace", namespace="http://etaxonomy.eu/cdm/model/common/1.0", propOrder = {
22
    "nspace",
23
	"clazz"
24
})
25
public class Namespace {
26

    
27
	@XmlElement(name = "NSpace", namespace="http://etaxonomy.eu/cdm/model/common/1.0", required = true)
28
	private String nspace;
29
	
30
	@XmlElement(name = "Class", namespace="http://etaxonomy.eu/cdm/model/common/1.0", required = true)
31
	@XmlJavaTypeAdapter(ClassAdapter.class)
32
	private Class<? extends IIdentifiableEntity> clazz;
33

    
34
	public String getNSpace() {
35
		return nspace;
36
	}
37

    
38
	public void setNSpace(String nspace) {
39
		this.nspace = nspace;
40
	}
41

    
42
	public Class<? extends IIdentifiableEntity> getClazz() {
43
		return clazz;
44
	}
45

    
46
	public void setClazz(Class<? extends IIdentifiableEntity> clazz) {
47
		this.clazz = clazz;
48
	}
49
}
(11-11/16)