Package cdm.base.datetime
Interface RelativeTimeOffset
- All Superinterfaces:
com.rosetta.model.lib.RosettaModelObject
- All Known Subinterfaces:
RelativeTime,RelativeTime.RelativeTimeBuilder,RelativeTimeOffset.RelativeTimeOffsetBuilder
- All Known Implementing Classes:
RelativeTime.RelativeTimeBuilderImpl,RelativeTime.RelativeTimeImpl,RelativeTimeOffset.RelativeTimeOffsetBuilderImpl,RelativeTimeOffset.RelativeTimeOffsetImpl
@RosettaDataType(value="RelativeTimeOffset",
builder=RelativeTimeOffsetBuilderImpl.class,
version="7.0.0-dev.105")
@RuneDataType(value="RelativeTimeOffset",
model="cdm",
builder=RelativeTimeOffsetBuilderImpl.class,
version="7.0.0-dev.105")
public interface RelativeTimeOffset
extends com.rosetta.model.lib.RosettaModelObject
Describes how a time is offset from a reference point, including the unit, magnitude, and rounding behavior.
- Version:
- 7.0.0-dev.105
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder Interfacestatic classBuilder Implementation of RelativeTimeOffsetstatic classImmutable Implementation of RelativeTimeOffset -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build Methodsbuilder()A time offset multiplier, e.g. 1, 2 or 3 etc.The unit of time for the offset (e.g., seconds, minutes, hours, days).Optional rules that define how the calculated time should be rounded after the offset has been applied.default Class<? extends RelativeTimeOffset> getType()default com.rosetta.model.lib.meta.RosettaMetaData<? extends RelativeTimeOffset> metaData()Utility Methodsdefault voidprocess(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) Methods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Field Details
-
metaData
-
-
Method Details
-
getOffsetTimeUnit
TimeUnitEnum getOffsetTimeUnit()The unit of time for the offset (e.g., seconds, minutes, hours, days). -
getOffsetMultiplier
Integer getOffsetMultiplier()A time offset multiplier, e.g. 1, 2 or 3 etc. A negative value can be used when specifying a negative offset, e.g. -2 hours. -
getRounding
TimeRounding getRounding()Optional rules that define how the calculated time should be rounded after the offset has been applied. -
build
RelativeTimeOffset build()Build Methods- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject
-
toBuilder
RelativeTimeOffset.RelativeTimeOffsetBuilder toBuilder()- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject
-
builder
-
metaData
Utility Methods- Specified by:
metaDatain interfacecom.rosetta.model.lib.RosettaModelObject
-
getType
- Specified by:
getTypein interfacecom.rosetta.model.lib.RosettaModelObject
-
process
default void process(com.rosetta.model.lib.path.RosettaPath path, com.rosetta.model.lib.process.Processor processor) - Specified by:
processin interfacecom.rosetta.model.lib.RosettaModelObject
-