2 * Copyright (C) 2013 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
.view
.derivate
;
11 import java
.util
.Collection
;
12 import java
.util
.Collections
;
13 import java
.util
.UUID
;
15 import eu
.etaxonomy
.taxeditor
.editor
.l10n
.Messages
;
18 * Editor input for the {@link DerivateView}
24 public class DerivateViewEditorInput
{
26 private Collection
<UUID
> derivativeUuids
;
27 private UUID taxonUuid
;
29 public DerivateViewEditorInput() {
32 public DerivateViewEditorInput(UUID derivativeUuid
, UUID taxonUuid
) {
33 this(Collections
.singleton(derivativeUuid
), taxonUuid
);
36 public DerivateViewEditorInput(Collection
<UUID
> derivativeUuids
, UUID taxonUuid
) {
37 this.derivativeUuids
= derivativeUuids
;
38 this.taxonUuid
= taxonUuid
;
41 public DerivateViewEditorInput(UUID derivativeUuid
) {
42 this(derivativeUuid
, null);
45 public DerivateViewEditorInput(Collection
<UUID
> derivativeUuids
) {
46 this(derivativeUuids
, null);
49 public Collection
<UUID
> getDerivativeUuids() {
50 return derivativeUuids
;
53 public UUID
getTaxonUuid() {
57 private String
getEditorName() {
58 return Messages
.DerivateViewEditorInput_SPECIMEN_EDITOR
;