2 * Copyright (C) 2018 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
.cdm
.api
.service
.dto
;
12 import java
.net
.URISyntaxException
;
13 import java
.util
.HashSet
;
16 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTerm
;
17 import eu
.etaxonomy
.cdm
.model
.media
.Media
;
18 import eu
.etaxonomy
.cdm
.model
.molecular
.Sequence
;
19 import eu
.etaxonomy
.cdm
.model
.molecular
.SequenceString
;
20 import eu
.etaxonomy
.cdm
.model
.molecular
.SingleReadAlignment
;
21 import eu
.etaxonomy
.cdm
.model
.reference
.Reference
;
28 public class SequenceDTO
{
30 private Media contigFile
;
32 private SequenceString consensusSequence
= SequenceString
.NewInstance();
35 private Boolean isBarcode
= null;
38 private SequenceString barcodeSequencePart
= SequenceString
.NewInstance();
41 private String geneticAccessionNumber
;
44 private String boldProcessId
;
47 private Set
<SingleReadAlignment
> singleReadAlignments
= new HashSet
<SingleReadAlignment
>();
50 private DefinedTerm dnaMarker
;
54 private String haplotype
;
57 private Set
<Reference
> citations
= new HashSet
<>();
62 private URI genBankUri
;
64 public SequenceDTO(Sequence seq
){
65 contigFile
= seq
.getContigFile();
66 consensusSequence
= seq
.getConsensusSequence();
67 isBarcode
= seq
.getIsBarcode();
68 barcodeSequencePart
= seq
.getBarcodeSequencePart();
69 geneticAccessionNumber
= seq
.getGeneticAccessionNumber();
70 boldProcessId
= seq
.getBoldProcessId();
71 singleReadAlignments
= seq
.getSingleReadAlignments();
72 dnaMarker
= seq
.getDnaMarker();
73 haplotype
= seq
.getHaplotype();
74 citations
= seq
.getCitations();
76 boldUri
= seq
.getBoldUri();
77 ddbjUri
= seq
.getDdbjUri();
78 emblUri
= seq
.getEmblUri();
79 genBankUri
= seq
.getGenBankUri();
80 } catch (URISyntaxException e
){
91 public URI
getBoldUri() {
99 public URI
getDdbjUri() {
105 * @return the emblUri
107 public URI
getEmblUri() {
113 * @return the genBankUri
115 public URI
getGenBankUri() {
121 * @return the contigFile
123 public Media
getContigFile() {
129 * @return the consensusSequence
131 public SequenceString
getConsensusSequence() {
132 return consensusSequence
;
137 * @return the isBarcode
139 public Boolean
getIsBarcode() {
145 * @return the barcodeSequencePart
147 public SequenceString
getBarcodeSequencePart() {
148 return barcodeSequencePart
;
153 * @return the geneticAccessionNumber
155 public String
getGeneticAccessionNumber() {
156 return geneticAccessionNumber
;
161 * @return the boldProcessId
163 public String
getBoldProcessId() {
164 return boldProcessId
;
169 * @return the singleReadAlignments
171 public Set
<SingleReadAlignment
> getSingleReadAlignments() {
172 return singleReadAlignments
;
177 * @return the dnaMarker
179 public DefinedTerm
getDnaMarker() {
185 * @return the haplotype
187 public String
getHaplotype() {
193 * @return the citations
195 public Set
<Reference
> getCitations() {