use of uk.ac.bbsrc.tgac.miso.core.data.type.ThresholdType in project miso-lims by miso-lims.
the class ConstantsController method addThresholdTypes.
private static void addThresholdTypes(ObjectNode node) {
ArrayNode thresholdTypes = node.putArray("thresholdTypes");
for (ThresholdType thresholdType : ThresholdType.values()) {
ObjectNode dto = thresholdTypes.addObject();
dto.put("value", thresholdType.name());
dto.put("sign", thresholdType.getSign());
dto.put("lowerBound", thresholdType.hasLowerBound());
dto.put("upperBound", thresholdType.hasUpperBound());
}
}
use of uk.ac.bbsrc.tgac.miso.core.data.type.ThresholdType in project miso-lims by miso-lims.
the class MetricDto method to.
public Metric to() {
Metric to = new Metric();
setLong(to::setId, getId(), false);
setString(to::setAlias, getAlias());
setObject(to::setCategory, getCategory(), MetricCategory::valueOf);
setObject(to::setSubcategory, MetricSubcategory::new, getSubcategoryId());
setObject(to::setThresholdType, getThresholdType(), ThresholdType::valueOf);
setString(to::setUnits, getUnits());
setInteger(to::setSortPriority, getSortPriority(), true);
setObject(to::setNucleicAcidType, getNucleicAcidType(), NucleicAcidType::valueOf);
setObject(to::setTissueMaterial, TissueMaterialImpl::new, getTissueMaterialId());
setObject(to::setTissueType, TissueTypeImpl::new, getTissueTypeId());
setBoolean(to::setNegateTissueType, isNegateTissueType(), false);
setObject(to::setTissueOrigin, TissueOriginImpl::new, getTissueOriginId());
setObject(to::setContainerModel, SequencingContainerModel::new, getContainerModelId());
setInteger(to::setReadLength, getReadLength(), true);
setInteger(to::setReadLength2, getReadLength2(), true);
return to;
}
Aggregations