Project

General

Profile

Download (653 Bytes) 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.adapters.XmlAdapter;
13
import eu.etaxonomy.cdm.model.common.LSID;
14

    
15

    
16
public class LSIDAdapter extends XmlAdapter<String, LSID>{
17

    
18
	public String marshal(LSID lsid) throws Exception {
19
		return lsid.getLsid();
20
	}
21

    
22
	public LSID unmarshal(String string) throws Exception {
23
		return new LSID(string);
24
	}
25

    
26
}
(8-8/16)