public class TimeRangeBeanImpl extends SdmxStructureBeanImpl implements TimeRangeBean
Constructor and Description |
---|
TimeRangeBeanImpl(TimeRangeMutableBean mutable,
SdmxStructureBean parent) |
TimeRangeBeanImpl(org.sdmx.resources.sdmxml.schemas.v21.common.TimeRangeValueType type,
SdmxStructureBean parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
deepEquals(SDMXBean bean,
boolean includeFinalProperties)
Returns true if this SdmxBean equals the given bean in every respect (except for the validTo property of a maintainable artefact, this is not taken into consideration)
This method calls deepEquals on any SdmxBean composites.
|
SdmxDate |
getEndDate()
Returns the End Date - if range is true, or the After date if range is false
|
SdmxDate |
getStartDate()
Returns the Start Date - if range is true, or the Before date if range is false
|
boolean |
isEndInclusive()
Returns true if the end date is included in the range
|
boolean |
isRange()
If true then start date and end date both have a value, and the range is between the start and end dates.
|
boolean |
isStartInclusive()
Returns true if the start date is included in the range
|
getIdentifiableComposites, getIdentifiableParent, getMaintainableParent, getParent, getStructureType
getComposites, getComposites, getCrossReferences, getParent
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIdentifiableComposites, getIdentifiableParent, getMaintainableParent, getParent
getComposites, getComposites, getCrossReferences, getParent, getStructureType
public TimeRangeBeanImpl(TimeRangeMutableBean mutable, SdmxStructureBean parent)
public TimeRangeBeanImpl(org.sdmx.resources.sdmxml.schemas.v21.common.TimeRangeValueType type, SdmxStructureBean parent)
public boolean deepEquals(SDMXBean bean, boolean includeFinalProperties)
SDMXBean
deepEquals
in interface SDMXBean
deepEquals
in class SDMXBeanImpl
bean
- if null, then false will be returnedincludeFinalProperties
- - if true, then this method will check every single property from this bean is
equal to the passed in bean. If false, then this method will ignore the following properties:
public boolean isRange()
TimeRangeBean
isRange
in interface TimeRangeBean
public SdmxDate getStartDate()
TimeRangeBean
getStartDate
in interface TimeRangeBean
public SdmxDate getEndDate()
TimeRangeBean
getEndDate
in interface TimeRangeBean
public boolean isStartInclusive()
TimeRangeBean
isStartInclusive
in interface TimeRangeBean
public boolean isEndInclusive()
TimeRangeBean
isEndInclusive
in interface TimeRangeBean