import eu.etaxonomy.cdm.common.CdmUtils;
import eu.etaxonomy.cdm.format.ICdmFormatter.FormatKey;
import eu.etaxonomy.cdm.format.description.CategoricalDataFormatter;
+import eu.etaxonomy.cdm.format.description.DescriptionElementFormatter;
import eu.etaxonomy.cdm.format.description.QuantitativeDataFormatter;
import eu.etaxonomy.cdm.format.occurrences.DistanceStringFormatter;
import eu.etaxonomy.cdm.model.agent.AgentBase;
return result;
}
-
-
private static String getCache(StateData stateData,
Language defaultLanguage) {
String cache = null;
cache = rep.getLabel();
}
}
- cache = CdmUtils.concat("=", cache, smv.getValue().toString());
+ if (smv.getValue() != null) {
+ cache = CdmUtils.concat("=", cache, smv.getValue().toString());
+ }
cache = isBlank(cache)? smv.getUuid().toString() : cache;
DescriptionBase<?> desc = smv.getQuantitativeData() == null? null : smv.getQuantitativeData().getInDescription();
String mainElementLabel = mainElementLabel(desc);
return concatWithMainElement(mainElementLabel, cache);
}
-
/**
* Returns the label of the main element (taxon, specimen or name) for
* the given description.