Package de.latlon.ets.wms13.core.uom
Class UomMatcherFromFile
java.lang.Object
de.latlon.ets.wms13.core.uom.UomMatcherFromFile
- All Implemented Interfaces:
UomMatcher
Implementation of a
UomMatcher retrieving the uoms from a file.- Author:
- Lyn Goltz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisExpectedUoM(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.
-
Constructor Details
-
UomMatcherFromFile
public UomMatcherFromFile()
-
-
Method Details
-
isExpectedUoM
Description copied from interface:UomMatcherChecks 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:
isExpectedUoMin interfaceUomMatcher- Parameters:
uom- the unit to check, may benull- Returns:
trueif the uom is one of the expected, otherwisefalse
-
parseUomsFromStream
-