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
.ui
.section
.supplemental
.identifier
;
13 import java
.util
.Collection
;
15 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
16 import eu
.etaxonomy
.cdm
.model
.common
.IdentifiableEntity
;
17 import eu
.etaxonomy
.cdm
.model
.common
.Identifier
;
18 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
19 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
26 public class IdentifierSection
extends AbstractIdentifierSection
<IdentifiableEntity
> {
28 public IdentifierSection(CdmFormFactory formFactory
,
29 ConversationHolder conversation
, ICdmFormElement parentElement
,
31 super(formFactory
, conversation
, parentElement
, style
);
35 public Collection
<Identifier
> getCollection(IdentifiableEntity entity
) {
36 return entity
.getIdentifiers();
40 public void addElement(Identifier element
) {
41 getEntity().addIdentifier(element
);
45 public void removeElement(Identifier element
) {
46 getEntity().removeIdentifier(element
);