}
}
- /**
- * Iterates recursively over all originals having the given specimen as a derivate.
- * If a {@link FieldUnit} is found it is returned
- * @param specimen the start element for which the originals are iterated recursively
- * @return the FieldUnit if found, <code>null</code> otherwise
- */
- public static FieldUnit getFieldUnit(SpecimenOrObservationBase<?> specimen){
- SpecimenOrObservationBase<?> topMostDerivate = getTopMostDerivate(specimen);
- if(topMostDerivate instanceof FieldUnit) {
- return (FieldUnit) topMostDerivate;
- }
- return null;
- }
-
/**
* If the current selection is a single {@link TreeNode} it will be returned.
* @param selection the selection to check