public class ActivityPeriodDto extends Object implements Comparable<ActivityPeriod>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
endActivityComment |
protected Date |
endingDate |
protected Date |
startingDate |
protected String |
topiaId |
| Constructor and Description |
|---|
ActivityPeriodDto() |
ActivityPeriodDto(String topiaId,
Date startingDate,
Date endingDate,
String endActivityComment) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(ActivityPeriod activityPeriod) |
String |
getEndActivityComment() |
Date |
getEndingDate() |
String |
getEndingDateFormatted() |
Date |
getStartingDate() |
String |
getStartingDateFormatted() |
String |
getTopiaId() |
boolean |
isEmpty() |
boolean |
isValid()
The date is valid if
- startingDate is not null
and in case of it exist an endingDate
- the endingDate is after the startingDate
and before the end of the actual day.
|
void |
setEndActivityComment(String endActivityComment) |
void |
setEndingDate(Date endingDate) |
void |
setStartingDate(Date startingDate) |
void |
setTopiaId(String topiaId) |
protected String topiaId
protected Date startingDate
protected Date endingDate
protected String endActivityComment
public int compareTo(ActivityPeriod activityPeriod)
compareTo in interface Comparable<ActivityPeriod>public boolean isEmpty()
public boolean isValid()
public String getTopiaId()
public void setTopiaId(String topiaId)
public Date getStartingDate()
public String getStartingDateFormatted()
public void setStartingDate(Date startingDate)
public Date getEndingDate()
public String getEndingDateFormatted()
public void setEndingDate(Date endingDate)
public String getEndActivityComment()
public void setEndActivityComment(String endActivityComment)
Copyright © 2013 Inra. All rights reserved.