ref #10322 add wfoIdentifier to webservice
[cdmlib.git] / cdmlib-api / src / main / java / eu / etaxonomy / cdm / api / dto / portal / IdentifiableDto.java
1 /**
2 * Copyright (C) 2023 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9 package eu.etaxonomy.cdm.api.dto.portal;
10
11 /**
12 * @author a.mueller
13 * @date 19.01.2023
14 */
15 public class IdentifiableDto extends SourcedDto {
16
17 private String label;
18
19 private ContainerDto<IdentifierDto> identifiers;
20
21 public String getLabel() {
22 return label;
23 }
24 public void setLabel(String label) {
25 this.label = label;
26 }
27
28 public ContainerDto<IdentifierDto> getIdentifiers() {
29 return identifiers;
30 }
31 public void addIdentifier(IdentifierDto identifierDto) {
32 if (identifiers == null) {
33 identifiers = new ContainerDto<>();
34 }
35 identifiers.addItem(identifierDto);
36 }
37 }