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 classEdalDate.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 aEdalDatewith a specified date, precision and event description.
-
Method Summary
Modifier and Type Method Description intcompareTo(UntypedData object)booleanequals(java.lang.Object obj)java.lang.StringgetEvent()Getter for the event of thisEdalDate.java.util.CalendargetStartDate()Getter for the startDate of thisEdalDate.EdalDatePrecisiongetStartPrecision()Getter for the precision of thisEdalDate.inthashCode()voidsetEvent(java.lang.String event)Setter for the event of thisEdalDate.voidsetStartDate(java.util.Calendar startDate)Setter for the startDate of thisEdalDate.voidsetStartPrecision(EdalDatePrecision startPrecision)Setter for the precision of thisEdalDate.java.lang.StringtoString()-
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 aEdalDatewith 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:
hashCodein classUntypedData
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classUntypedData
-
compareTo
public int compareTo(UntypedData object)
Description copied from class:UntypedData- Specified by:
compareToin interfacejava.lang.Comparable<UntypedData>- Overrides:
compareToin 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:
toStringin classUntypedData
-
-