Class UomMatcherFromFile

java.lang.Object
de.latlon.ets.wms13.core.uom.UomMatcherFromFile
All Implemented Interfaces:
UomMatcher

public class UomMatcherFromFile extends Object implements UomMatcher
Implementation of a UomMatcher retrieving the uoms from a file.
Author:
Lyn Goltz
  • Constructor Details

    • UomMatcherFromFile

      public UomMatcherFromFile()
  • Method Details

    • isExpectedUoM

      public boolean isExpectedUoM(String uom)
      Description copied from interface: UomMatcher
      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!
      Specified by:
      isExpectedUoM in interface UomMatcher
      Parameters:
      uom - the unit to check, may be null
      Returns:
      true if the uom is one of the expected, otherwise false
    • parseUomsFromStream

      List<String> parseUomsFromStream()