Interface UomMatcher

All Known Implementing Classes:
UomMatcherFromFile

public interface UomMatcher
Contains useful methods regarding supported Unit of Measures.
Author:
Lyn Goltz
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the passed UoM is one of the expected UoM (a base unit from ​http://unitsofmeasure.org/ucum.html#section-Base-Units (Base Units, 4.2) or a MeTOC Unit.
  • Method Details

    • isExpectedUoM

      boolean isExpectedUoM(String uom)
      Checks if the passed UoM is one of the expected UoM (a base unit from ​http://unitsofmeasure.org/ucum.html#section-Base-Units (Base Units, 4.2) or a MeTOC Unit. The check is case-sensitive!
      Parameters:
      uom - the unit to check, may be null
      Returns:
      true if the uom is one of the expected, otherwise false