public interface UnitService
UnitModels.| Modifier and Type | Method and Description |
|---|---|
java.util.Set<UnitModel> |
getAllUnits()
Returns all Units.
|
java.util.Set<java.lang.String> |
getAllUnitTypes()
Returns all unit types (e.g.
|
UnitModel |
getUnitForCode(java.lang.String code) |
java.util.Set<UnitModel> |
getUnitsForUnitType(java.lang.String unitType)
Returns all units for specific unit type
|
UnitModel getUnitForCode(java.lang.String code)
code - the UnitModel.CODEcode the UnitModeljava.lang.IllegalArgumentException - if code is null.UnknownIdentifierException - if no unit was foundAmbiguousIdentifierException - if more than one unit was found by this codejava.util.Set<UnitModel> getAllUnits()
java.util.Set<java.lang.String> getAllUnitTypes()
java.util.Set<UnitModel> getUnitsForUnitType(java.lang.String unitType)
unitType - search only units for this unit typeCopyright © 2018 SAP SE. All Rights Reserved.