2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.jaxb
;
12 import javax
.xml
.bind
.annotation
.adapters
.XmlAdapter
;
14 public class ClassAdapter
extends XmlAdapter
<String
, Class
> {
17 public String
marshal(Class clazz
) throws Exception
{
18 return clazz
.getCanonicalName();
22 public Class
unmarshal(String string
) throws Exception
{
23 return Class
.forName(string
);