private List<DerivedUnitStatusDto> status;
private String specimenShortTitle;
- private List<TypedEntityReference<Taxon>> associatedTaxa = new ArrayList<>();;
+ private List<TypedEntityReference<Taxon>> associatedTaxa = new ArrayList<>();
private URI preferredStableUri;
private DerivationEventDTO derivationEvent;
* The latter lists all collections with the number of specimens which are involved in this tree.
*/
private TreeLabels assembleLablesFromTree(
- boolean doSummaryLabel, boolean collectionsStatistics) {
+ boolean doSummaryLabel, boolean doCollectionsStatistics) {
final String SEPARATOR_STRING = ", ";
treeLabels.summaryLabel = summaryLabel;
}
- if(collectionsStatistics) {
+ if(doCollectionsStatistics) {
List<String> collectionStats = new ArrayList<>();
for (CollectionDTO collectionDTO : unitIdenfierLabelsByCollections.keySet()) {
int unitCount = unitIdenfierLabelsByCollections.get(collectionDTO).size();
String summaryLabel = null;
String collectionsStatistics = null;
}
-
}
\ No newline at end of file
this.collectingMethod = collectingMethod;
}
+
public Integer getAbsoluteElevation() {
return absoluteElevation;
}
}
/**
- *
- * @param name1
- * @param name2
* @param includeNomIlleg
* if <code>true</code> and if both names have no date or same date, the only
* name having nom. illeg. state is handled as if the name was published later than the name
return result;
}
-
-}
+}
\ No newline at end of file
@XmlRootElement(name = "SingleReadAlignment")\r
@Entity\r
@Audited\r
-public class SingleReadAlignment extends VersionableEntity implements Serializable {\r
+public class SingleReadAlignment extends VersionableEntity {\r
private static final long serialVersionUID = 6141518347067279304L;\r
\r
/** @see #getDnaMarker() */\r
\r
\r
public static class Shift implements Cloneable, Serializable {\r
- public int position;\r
+ private static final long serialVersionUID = 1520907434703028506L;\r
+\r
+ public int position;\r
public int shift;\r
\r
- public Shift(){};\r
+ public Shift(){}\r
public Shift(int position, int steps) {\r
this.position = position;\r
this.shift = steps;\r
\r
// ***************** CONSTRUCTOR *************************/\r
\r
- protected SingleReadAlignment(){};\r
+ protected SingleReadAlignment(){}\r
\r
private SingleReadAlignment(Sequence consensusAlignment, SingleRead singleRead,\r
Shift[] shifts, String editedSequence){\r
protected String token;
private Date expiryDate;
- /**
- *
- */
public AbstractRequestToken() {
super();
}
dto.setFieldNotes(fieldUnit.getFieldNotes());
dto.setFieldNumber(fieldUnit.getFieldNumber());
+
if(typeIncludeFilter == null) {
typeIncludeFilter = EnumSet.allOf(SpecimenOrObservationType.class);
}
if (fieldUnit.getGatheringEvent() != null) {
GatheringEvent gatheringEvent = fieldUnit.getGatheringEvent();
- // Country
+
+ //country
NamedArea country = gatheringEvent.getCountry();
dto.setCountry(country != null ? country.getLabel() : null);
- // Collection
+
+ //collector/fieldNumber
AgentBase<?> collector = gatheringEvent.getCollector();
String fieldNumber = fieldUnit.getFieldNumber();
String collectionString = "";
dto.setDistanceToWaterSurface(gathering.getDistanceToWaterSurface());
dto.setDistanceToWaterSurfaceMax(gathering.getDistanceToWaterSurfaceMax());
dto.setDistanceToWaterSurfaceText(gathering.getDistanceToWaterSurfaceText());
+
//TODO why only start date
dto.setDate(gathering.getGatheringDate());