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.
9 package eu
.etaxonomy
.taxeditor
.editor
.definedterm
;
11 import java
.util
.UUID
;
13 import eu
.etaxonomy
.cdm
.api
.service
.ITermService
;
14 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
15 import eu
.etaxonomy
.taxeditor
.model
.CdmObjectTransfer
;
16 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
23 public class TermTransfer
extends CdmObjectTransfer
<DefinedTermBase
> {
25 private static TermTransfer instance
= new TermTransfer();
26 private static final String TYPE_NAME
= "termElement-transfer-format";
27 private static final int TYPEID
= registerType(TYPE_NAME
);
29 public static synchronized TermTransfer
getInstance(){
33 private TermTransfer() {}
36 public DefinedTermBase
loadElement(UUID uuid
) {
37 return CdmStore
.getService(ITermService
.class).load(uuid
);
41 protected int[] getTypeIds() {
42 return new int[] { TYPEID
};
46 protected String
[] getTypeNames() {
47 return new String
[] { TYPE_NAME
};