Package cdm.base.datetime
Class RelativeDateOffset.RelativeDateOffsetImpl
java.lang.Object
cdm.base.datetime.Period.PeriodImpl
cdm.base.datetime.Offset.OffsetImpl
cdm.base.datetime.RelativeDateOffset.RelativeDateOffsetImpl
- All Implemented Interfaces:
Offset,Period,RelativeDateOffset,com.rosetta.model.lib.GlobalKey,com.rosetta.model.lib.RosettaModelObject
- Direct Known Subclasses:
AdjustedRelativeDateOffset.AdjustedRelativeDateOffsetImpl,RelativeDates.RelativeDatesImpl
- Enclosing interface:
RelativeDateOffset
public static class RelativeDateOffset.RelativeDateOffsetImpl
extends Offset.OffsetImpl
implements RelativeDateOffset
Immutable Implementation of RelativeDateOffset
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rosetta.model.lib.GlobalKey
com.rosetta.model.lib.GlobalKey.GlobalKeyBuilderNested classes/interfaces inherited from interface cdm.base.datetime.Offset
Offset.OffsetBuilder, Offset.OffsetBuilderImpl, Offset.OffsetImplNested classes/interfaces inherited from interface cdm.base.datetime.Period
Period.PeriodBuilder, Period.PeriodBuilderImpl, Period.PeriodImplNested classes/interfaces inherited from interface cdm.base.datetime.RelativeDateOffset
RelativeDateOffset.RelativeDateOffsetBuilder, RelativeDateOffset.RelativeDateOffsetBuilderImpl, RelativeDateOffset.RelativeDateOffsetImpl -
Field Summary
Fields inherited from interface cdm.base.datetime.RelativeDateOffset
metaData -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build Methodsbooleancom.rosetta.model.lib.records.DateThe date once the adjustment has been performed.A pointer style reference to a set of financial business centers defined elsewhere in the document.The convention for adjusting a date if it would otherwise fall on a day that is not a business day, as specified by an ISDA convention (e.g.Specifies the anchor as an href attribute.inthashCode()protected voidtoString()Methods inherited from class cdm.base.datetime.Offset.OffsetImpl
getDayType, setBuilderFieldsMethods inherited from class cdm.base.datetime.Period.PeriodImpl
getMeta, getPeriod, getPeriodMultiplier, setBuilderFieldsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface cdm.base.datetime.Offset
getDayTypeMethods inherited from interface cdm.base.datetime.Period
getMeta, getPeriod, getPeriodMultiplierMethods inherited from interface cdm.base.datetime.RelativeDateOffset
getType, metaData, processMethods inherited from interface com.rosetta.model.lib.RosettaModelObject
processRosetta, processRosetta
-
Constructor Details
-
RelativeDateOffsetImpl
-
-
Method Details
-
getBusinessDayConvention
@RosettaAttribute(value="businessDayConvention", isRequired=true) @RuneAttribute(value="businessDayConvention", isRequired=true) public BusinessDayConventionEnum getBusinessDayConvention()Description copied from interface:RelativeDateOffsetThe convention for adjusting a date if it would otherwise fall on a day that is not a business day, as specified by an ISDA convention (e.g. Following, Precedent).- Specified by:
getBusinessDayConventionin interfaceRelativeDateOffset
-
getBusinessCenters
@RosettaAttribute("businessCenters") @RuneAttribute("businessCenters") public BusinessCenters getBusinessCenters()- Specified by:
getBusinessCentersin interfaceRelativeDateOffset
-
getBusinessCentersReference
@RosettaAttribute("businessCentersReference") @RuneAttribute("businessCentersReference") public ReferenceWithMetaBusinessCenters getBusinessCentersReference()Description copied from interface:RelativeDateOffsetA pointer style reference to a set of financial business centers defined elsewhere in the document. This set of business centers is used to determine whether a particular day is a business day or not.- Specified by:
getBusinessCentersReferencein interfaceRelativeDateOffset
-
getDateRelativeTo
@RosettaAttribute("dateRelativeTo") @RuneAttribute("dateRelativeTo") public ReferenceWithMetaDate getDateRelativeTo()Description copied from interface:RelativeDateOffsetSpecifies the anchor as an href attribute. The href attribute value is a pointer style reference to the element or component elsewhere in the document where the anchor date is defined.- Specified by:
getDateRelativeToin interfaceRelativeDateOffset
-
getAdjustedDate
@RosettaAttribute("adjustedDate") @RuneAttribute("adjustedDate") public com.rosetta.model.lib.records.Date getAdjustedDate()Description copied from interface:RelativeDateOffsetThe date once the adjustment has been performed. (Note that this date may change if the business center holidays change).- Specified by:
getAdjustedDatein interfaceRelativeDateOffset
-
build
Description copied from interface:PeriodBuild Methods- Specified by:
buildin interfaceOffset- Specified by:
buildin interfacePeriod- Specified by:
buildin interfaceRelativeDateOffset- Specified by:
buildin interfacecom.rosetta.model.lib.RosettaModelObject- Overrides:
buildin classOffset.OffsetImpl
-
toBuilder
- Specified by:
toBuilderin interfaceOffset- Specified by:
toBuilderin interfacePeriod- Specified by:
toBuilderin interfaceRelativeDateOffset- Specified by:
toBuilderin interfacecom.rosetta.model.lib.RosettaModelObject- Overrides:
toBuilderin classOffset.OffsetImpl
-
setBuilderFields
-
equals
- Overrides:
equalsin classOffset.OffsetImpl
-
hashCode
public int hashCode()- Overrides:
hashCodein classOffset.OffsetImpl
-
toString
- Overrides:
toStringin classOffset.OffsetImpl
-