Project

General

Profile

Download (380 Bytes) Statistics
| Branch: | Tag: | Revision:
1
package eu.etaxonomy.cdm.jaxb;
2

    
3
import javax.xml.bind.annotation.adapters.XmlAdapter;
4
import eu.etaxonomy.cdm.model.common.LSID;
5

    
6

    
7
public class LSIDAdapter extends XmlAdapter<String, LSID>{
8

    
9
	public String marshal(LSID lsid) throws Exception {
10
		return lsid.getLsid();
11
	}
12

    
13
	public LSID unmarshal(String string) throws Exception {
14
		return new LSID(string);
15
	}
16

    
17
}
(6-6/14)