Package cdm.base.math

Interface UnitType

All Superinterfaces:
com.rosetta.model.lib.RosettaModelObject
All Known Subinterfaces:
UnitType.UnitTypeBuilder
All Known Implementing Classes:
UnitType.UnitTypeBuilderImpl, UnitType.UnitTypeImpl

@RosettaDataType(value="UnitType", builder=UnitTypeBuilderImpl.class, version="5.30.0") @RuneDataType(value="UnitType", model="cdm", builder=UnitTypeBuilderImpl.class, version="5.30.0") public interface UnitType extends com.rosetta.model.lib.RosettaModelObject
Defines the unit to be used for price, quantity, or other purposes
Version:
5.30.0
  • Field Details

  • Method Details

    • getCapacityUnit

      CapacityUnitEnum getCapacityUnit()
      Provides an enumerated value for a capacity unit, generally used in the context of defining quantities for commodities.
    • getWeatherUnit

      WeatherUnitEnum getWeatherUnit()
      Provides an enumerated values for a weather unit, generally used in the context of defining quantities for commodities.
    • getFinancialUnit

      FinancialUnitEnum getFinancialUnit()
      Provides an enumerated value for financial units, generally used in the context of defining quantities for securities.
    • getCurrency

      FieldWithMetaString getCurrency()
      Defines the currency to be used as a unit for a price, quantity, or other purpose.
    • build

      UnitType build()
      Build Methods
      Specified by:
      build in interface com.rosetta.model.lib.RosettaModelObject
    • toBuilder

      Specified by:
      toBuilder in interface com.rosetta.model.lib.RosettaModelObject
    • builder

      static UnitType.UnitTypeBuilder builder()
    • metaData

      default com.rosetta.model.lib.meta.RosettaMetaData<? extends UnitType> metaData()
      Utility Methods
      Specified by:
      metaData in interface com.rosetta.model.lib.RosettaModelObject
    • getType

      @RuneAttribute("@type") default Class<? extends UnitType> getType()
      Specified by:
      getType in interface com.rosetta.model.lib.RosettaModelObject
    • process

      default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor)
      Specified by:
      process in interface com.rosetta.model.lib.RosettaModelObject