All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.molgenis.semanticmapper.service.UnitResolver Maven / Gradle / Ivy

package org.molgenis.semanticmapper.service;

import javax.measure.quantity.Quantity;
import javax.measure.unit.Unit;
import org.molgenis.data.meta.model.Attribute;
import org.molgenis.data.meta.model.EntityType;

public interface UnitResolver {
  /**
   * Determine attribute unit based on meta data
   *
   * @param attr attribute for which to determine unit
   * @param entityType corresponding entity meta data for attribute
   * @return unit or null
   */
  Unit resolveUnit(Attribute attr, EntityType entityType);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy