Revision 2720ea2c
Added by Andreas Müller about 3 years ago
cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/specimen/abcd206/in/Abcd206ImportState.java | ||
---|---|---|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
9 |
|
|
10 | 9 |
package eu.etaxonomy.cdm.io.specimen.abcd206.in; |
11 | 10 |
|
12 | 11 |
import java.io.ByteArrayOutputStream; |
... | ... | |
35 | 34 |
|
36 | 35 |
private String prefix; |
37 | 36 |
|
38 |
private List<String[]> associatedUnitIds = new ArrayList<String[]>();
|
|
37 |
private List<String[]> associatedUnitIds = new ArrayList<>(); |
|
39 | 38 |
|
40 | 39 |
private Set<URI> sequenceDataStableIdentifier = new HashSet<>(); |
41 | 40 |
|
42 |
private List<UUID> fieldUnitUUIDsToDelete = new ArrayList(); |
|
41 |
private List<UUID> fieldUnitUUIDsToDelete = new ArrayList<>();
|
|
43 | 42 |
|
44 | 43 |
private FieldUnit lastFieldUnit = null; |
45 | 44 |
|
46 | 45 |
|
47 |
|
|
48 | 46 |
//****************** CONSTRUCTOR ***************************************************/ |
49 | 47 |
|
50 |
|
|
51 | 48 |
public Abcd206ImportState(Abcd206ImportConfigurator config) { |
52 | 49 |
super(config); |
53 | 50 |
setReport(new SpecimenImportReport()); |
... | ... | |
56 | 53 |
|
57 | 54 |
//************************ GETTER / SETTER *****************************************/ |
58 | 55 |
|
59 |
|
|
60 |
|
|
61 | 56 |
@Override |
62 | 57 |
public Abcd206DataHolder getDataHolder() { |
63 | 58 |
return (Abcd206DataHolder)dataHolder; |
... | ... | |
67 | 62 |
this.dataHolder = dataHolder; |
68 | 63 |
} |
69 | 64 |
|
70 |
/** |
|
71 |
* @return the fieldUnitsToDelete |
|
72 |
*/ |
|
73 | 65 |
public List<UUID> getFieldUnitsToDelete() { |
74 | 66 |
return fieldUnitUUIDsToDelete; |
75 | 67 |
} |
76 |
|
|
77 |
/** |
|
78 |
* @param fieldUnitsToDelete the fieldUnitsToDelete to set |
|
79 |
*/ |
|
80 | 68 |
public void setFieldUnitsToDelete(List<UUID> fieldUnitsToDelete) { |
81 | 69 |
this.fieldUnitUUIDsToDelete = fieldUnitsToDelete; |
82 | 70 |
} |
83 | 71 |
|
84 |
/** |
|
85 |
* @param fieldUnitsToDelete the fieldUnitsToDelete to set |
|
86 |
*/ |
|
87 | 72 |
public void addFieldUnitsToDelete(FieldUnit fieldUnitToDelete) { |
88 | 73 |
if (fieldUnitToDelete != null){ |
89 | 74 |
this.fieldUnitUUIDsToDelete.add(fieldUnitToDelete.getUuid()); |
... | ... | |
113 | 98 |
return this.associatedUnitIds; |
114 | 99 |
} |
115 | 100 |
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
120 | 101 |
public Set<URI> getSequenceDataStableIdentifier() { |
121 | 102 |
return sequenceDataStableIdentifier; |
122 | 103 |
} |
... | ... | |
125 | 106 |
this.sequenceDataStableIdentifier.add(sequenceDataStableIdentifier); |
126 | 107 |
} |
127 | 108 |
|
128 |
|
|
129 | 109 |
public FieldUnit getLastFieldUnit() { |
130 | 110 |
return lastFieldUnit; |
131 | 111 |
} |
... | ... | |
137 | 117 |
} |
138 | 118 |
} |
139 | 119 |
|
140 |
|
|
141 |
|
|
142 |
|
|
143 | 120 |
// |
144 | 121 |
// public void reset() { |
145 | 122 |
// getDataHolder().reset(); |
146 | 123 |
// setDerivedUnitBase(null); |
147 | 124 |
// } |
148 |
} |
|
125 |
} |
Also available in: Unified diff
cleanup