3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.featuretree
;
13 import java
.util
.UUID
;
15 import eu
.etaxonomy
.cdm
.api
.service
.IFeatureNodeService
;
16 import eu
.etaxonomy
.cdm
.model
.description
.FeatureNode
;
17 import eu
.etaxonomy
.taxeditor
.model
.CdmObjectTransfer
;
18 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
21 * <p>FeatureNodeTransfer class.</p>
24 * @created Aug 5, 2010
27 public class FeatureNodeTransfer
extends CdmObjectTransfer
<FeatureNode
> {
29 private static FeatureNodeTransfer instance
= new FeatureNodeTransfer();
30 private static final String TYPE_NAME
= "featureNode-transfer-format";
31 private static final int TYPEID
= registerType(TYPE_NAME
);
34 * <p>Getter for the field <code>instance</code>.</p>
36 * @return a {@link eu.etaxonomy.taxeditor.featuretree.FeatureNodeTransfer} object.
38 public static synchronized FeatureNodeTransfer
getInstance() {
42 private FeatureNodeTransfer() {
47 protected int[] getTypeIds() {
48 return new int[] { TYPEID
};
53 protected String
[] getTypeNames() {
54 return new String
[] { TYPE_NAME
};
58 * @see eu.etaxonomy.taxeditor.model.CdmObjectTransfer#loadElement(java.util.UUID)
61 public FeatureNode
loadElement(UUID uuid
) {
62 return CdmStore
.getService(IFeatureNodeService
.class).load(uuid
);