Class EdalDateRange
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.EdalDate
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.EdalDateRange
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UntypedData>
public class EdalDateRange extends EdalDate
Data type to describe a time range.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.EdalDate
EdalDate.STANDART_EVENT_TYPES
-
-
Field Summary
-
Fields inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
ALL_RIGHTS_RESERVED, EMPTY, string
-
-
Constructor Summary
Constructors Constructor Description EdalDateRange(java.util.Calendar startDate, EdalDatePrecision startPrecision, java.util.Calendar endDate, EdalDatePrecision endPrecision, java.lang.String event)
Default constructor to create aEdalDateRange
with a specified startDate, startPrecision, endDate, endPrecision and event description.
-
Method Summary
Modifier and Type Method Description int
compareTo(UntypedData object)
boolean
equals(java.lang.Object obj)
java.util.Calendar
getEndDate()
Getter for the endDate of thisEdalDateRange
.EdalDatePrecision
getEndPrecision()
Getter for the endPrecission of thisEdalDateRange
.int
hashCode()
void
setEndDate(java.util.Calendar endDate)
Setter for the endDate of thisEdalDateRange
.void
setEndPrecision(EdalDatePrecision endPrecision)
Setter for the endPrecision of thisEdalDateRange
.java.lang.String
toString()
-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.EdalDate
getEvent, getStartDate, getStartPrecision, setEvent, setStartDate, setStartPrecision
-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
getString, setString, toHTML
-
-
-
-
Constructor Detail
-
EdalDateRange
public EdalDateRange(java.util.Calendar startDate, EdalDatePrecision startPrecision, java.util.Calendar endDate, EdalDatePrecision endPrecision, java.lang.String event)
Default constructor to create aEdalDateRange
with a specified startDate, startPrecision, endDate, endPrecision and event description.- Parameters:
startDate
- the start date of the time range.startPrecision
- the precision of the given start date.endDate
- the end date of the time rangeendPrecision
- the precision of the given end date.event
- the description of the time range.
-
-
Method Detail
-
compareTo
public int compareTo(UntypedData object)
Description copied from class:UntypedData
- Specified by:
compareTo
in interfacejava.lang.Comparable<UntypedData>
- Overrides:
compareTo
in classEdalDate
-
getEndDate
public java.util.Calendar getEndDate()
Getter for the endDate of thisEdalDateRange
.- Returns:
- the endDate
-
getEndPrecision
public EdalDatePrecision getEndPrecision()
Getter for the endPrecission of thisEdalDateRange
.- Returns:
- the endPrecision
-
setEndDate
public void setEndDate(java.util.Calendar endDate)
Setter for the endDate of thisEdalDateRange
.- Parameters:
endDate
- the endDate to set
-
setEndPrecision
public void setEndPrecision(EdalDatePrecision endPrecision)
Setter for the endPrecision of thisEdalDateRange
.- Parameters:
endPrecision
- the endPrecision to set
-
-