Package cdm.base.math
Class UnitType.UnitTypeBuilderImpl
java.lang.Object
cdm.base.math.UnitType.UnitTypeBuilderImpl
- All Implemented Interfaces:
UnitType,UnitType.UnitTypeBuilder,com.rosetta.model.lib.RosettaModelObject,com.rosetta.model.lib.RosettaModelObjectBuilder
- Enclosing interface:
UnitType
Builder Implementation of UnitType
-
Nested Class Summary
Nested classes/interfaces inherited from interface cdm.base.math.UnitType
UnitType.UnitTypeBuilder, UnitType.UnitTypeBuilderImpl, UnitType.UnitTypeImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CapacityUnitEnumprotected FinancialUnitEnumprotected WeatherUnitEnum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build MethodsbooleanProvides an enumerated value for a capacity unit, generally used in the context of defining quantities for commodities.Defines the currency to be used as a unit for a price, quantity, or other purpose.Provides an enumerated value for financial units, generally used in the context of defining quantities for securities.Provides an enumerated values for a weather unit, generally used in the context of defining quantities for commodities.booleanhasData()inthashCode()merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) prune()setCapacityUnit(CapacityUnitEnum _capacityUnit) setCurrency(FieldWithMetaString _currency) setCurrencyValue(String _currency) setFinancialUnit(FinancialUnitEnum _financialUnit) setWeatherUnit(WeatherUnitEnum _weatherUnit) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosettaMethods inherited from interface com.rosetta.model.lib.RosettaModelObjectBuilder
getIndex, processRosetta, processRosettaMethods inherited from interface cdm.base.math.UnitType.UnitTypeBuilder
process
-
Field Details
-
capacityUnit
-
weatherUnit
-
financialUnit
-
currency
-
-
Constructor Details
-
UnitTypeBuilderImpl
public UnitTypeBuilderImpl()
-
-
Method Details
-
getCapacityUnit
@RosettaAttribute("capacityUnit") @RuneAttribute("capacityUnit") public CapacityUnitEnum getCapacityUnit()Description copied from interface:UnitTypeProvides an enumerated value for a capacity unit, generally used in the context of defining quantities for commodities.- Specified by:
getCapacityUnitin interfaceUnitType
-
getWeatherUnit
@RosettaAttribute("weatherUnit") @RuneAttribute("weatherUnit") public WeatherUnitEnum getWeatherUnit()Description copied from interface:UnitTypeProvides an enumerated values for a weather unit, generally used in the context of defining quantities for commodities.- Specified by:
getWeatherUnitin interfaceUnitType
-
getFinancialUnit
@RosettaAttribute("financialUnit") @RuneAttribute("financialUnit") public FinancialUnitEnum getFinancialUnit()Description copied from interface:UnitTypeProvides an enumerated value for financial units, generally used in the context of defining quantities for securities.- Specified by:
getFinancialUnitin interfaceUnitType
-
getCurrency
@RosettaAttribute("currency") @RuneAttribute("currency") public FieldWithMetaString.FieldWithMetaStringBuilder getCurrency()Description copied from interface:UnitTypeDefines the currency to be used as a unit for a price, quantity, or other purpose.- Specified by:
getCurrencyin interfaceUnitType- Specified by:
getCurrencyin interfaceUnitType.UnitTypeBuilder
-
getOrCreateCurrency
- Specified by:
getOrCreateCurrencyin interfaceUnitType.UnitTypeBuilder
-
setCapacityUnit
@RosettaAttribute("capacityUnit") @RuneAttribute("capacityUnit") public UnitType.UnitTypeBuilder setCapacityUnit(CapacityUnitEnum _capacityUnit) - Specified by:
setCapacityUnitin interfaceUnitType.UnitTypeBuilder
-
setWeatherUnit
@RosettaAttribute("weatherUnit") @RuneAttribute("weatherUnit") public UnitType.UnitTypeBuilder setWeatherUnit(WeatherUnitEnum _weatherUnit) - Specified by:
setWeatherUnitin interfaceUnitType.UnitTypeBuilder
-
setFinancialUnit
@RosettaAttribute("financialUnit") @RuneAttribute("financialUnit") public UnitType.UnitTypeBuilder setFinancialUnit(FinancialUnitEnum _financialUnit) - Specified by:
setFinancialUnitin interfaceUnitType.UnitTypeBuilder
-
setCurrency
@RosettaAttribute("currency") @RuneAttribute("currency") public UnitType.UnitTypeBuilder setCurrency(FieldWithMetaString _currency) - Specified by:
setCurrencyin interfaceUnitType.UnitTypeBuilder
-
setCurrencyValue
- Specified by:
setCurrencyValuein interfaceUnitType.UnitTypeBuilder
-
build
Description copied from interface:UnitTypeBuild Methods -
toBuilder
-
prune
- Specified by:
prunein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder- Specified by:
prunein interfaceUnitType.UnitTypeBuilder
-
hasData
public boolean hasData()- Specified by:
hasDatain interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
merge
public UnitType.UnitTypeBuilder merge(com.rosetta.model.lib.RosettaModelObjectBuilder other, com.rosetta.model.lib.process.BuilderMerger merger) - Specified by:
mergein interfacecom.rosetta.model.lib.RosettaModelObjectBuilder
-
equals
-
hashCode
public int hashCode() -
toString
-