Class EdalDate
- java.lang.Object
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.EdalDate
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UntypedData>
- Direct Known Subclasses:
EdalDateRange
public class EdalDate extends UntypedData
Data type to describe a time point.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
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 EdalDate(java.util.Calendar startDate, EdalDatePrecision startPrecision, java.lang.String event)
Default constructor to create aEdalDate
with a specified date, precision and event description.
-
Method Summary
Modifier and Type Method Description int
compareTo(UntypedData object)
boolean
equals(java.lang.Object obj)
java.lang.String
getEvent()
Getter for the event of thisEdalDate
.java.util.Calendar
getStartDate()
Getter for the startDate of thisEdalDate
.EdalDatePrecision
getStartPrecision()
Getter for the precision of thisEdalDate
.int
hashCode()
void
setEvent(java.lang.String event)
Setter for the event of thisEdalDate
.void
setStartDate(java.util.Calendar startDate)
Setter for the startDate of thisEdalDate
.void
setStartPrecision(EdalDatePrecision startPrecision)
Setter for the precision of thisEdalDate
.java.lang.String
toString()
-
Methods inherited from class de.ipk_gatersleben.bit.bi.edal.primary_data.metadata.UntypedData
getString, setString, toHTML
-
-
-
-
Constructor Detail
-
EdalDate
public EdalDate(java.util.Calendar startDate, EdalDatePrecision startPrecision, java.lang.String event)
Default constructor to create aEdalDate
with a specified date, precision and event description.- Parameters:
startDate
- the date of the time point.startPrecision
- the precision of the given date.event
- the description of the time point.
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classUntypedData
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classUntypedData
-
compareTo
public int compareTo(UntypedData object)
Description copied from class:UntypedData
- Specified by:
compareTo
in interfacejava.lang.Comparable<UntypedData>
- Overrides:
compareTo
in classUntypedData
-
getEvent
public java.lang.String getEvent()
Getter for the event of thisEdalDate
.- Returns:
- the event of this
EdalDate
.
-
getStartDate
public java.util.Calendar getStartDate()
Getter for the startDate of thisEdalDate
.- Returns:
- the startDate
-
getStartPrecision
public EdalDatePrecision getStartPrecision()
Getter for the precision of thisEdalDate
.- Returns:
- the startPrecision
-
setEvent
public void setEvent(java.lang.String event)
Setter for the event of thisEdalDate
.- Parameters:
event
- the event to set.
-
setStartDate
public void setStartDate(java.util.Calendar startDate)
Setter for the startDate of thisEdalDate
.- Parameters:
startDate
- the startDate to set
-
setStartPrecision
public void setStartPrecision(EdalDatePrecision startPrecision)
Setter for the precision of thisEdalDate
.- Parameters:
startPrecision
- the startPrecision to set
-
toString
public java.lang.String toString()
- Overrides:
toString
in classUntypedData
-
-