Package org.bedework.calfacade
Class BwDuration
java.lang.Object
org.bedework.calfacade.BwDuration
- All Implemented Interfaces:
Serializable
Class representing a duration.
- Version:
- 1.0
- Author:
- Mike Douglass douglm@bedework.edu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDays()Get the daysintgetHours()Get the hoursintGet the minutesbooleanGet the negative flagintGet the secondsintgetWeeks()Get the weeksbooleanisZero()Return true if this represents a zero durationnet.fortuna.ical4j.model.property.DurationMake an ical Durationstatic BwDurationmakeDuration(String val) Return a BwDuration populated from the given String value.static voidpopulate(BwDuration db, String val) Populate the bean from the given String value.voidsetDays(int val) Set the daysvoidsetHours(int val) Set the hoursvoidsetMinutes(int val) Set the minutesvoidsetNegative(boolean val) Flag a negative durationvoidsetSeconds(int val) Set the secondsvoidsetWeeks(int val) Set the weekstoString()
-
Constructor Details
-
BwDuration
public BwDuration()Constructor
-
-
Method Details
-
setDays
public void setDays(int val) Set the days- Parameters:
val- int days
-
getDays
public int getDays()Get the days- Returns:
- int the days
-
setHours
public void setHours(int val) Set the hours- Parameters:
val- int hours
-
getHours
public int getHours()Get the hours- Returns:
- int the hours
-
setMinutes
public void setMinutes(int val) Set the minutes- Parameters:
val- int minutes
-
getMinutes
public int getMinutes()Get the minutes- Returns:
- int the minutes
-
setSeconds
public void setSeconds(int val) Set the seconds- Parameters:
val- int seconds
-
getSeconds
public int getSeconds()Get the seconds- Returns:
- int the seconds
-
setWeeks
public void setWeeks(int val) Set the weeks- Parameters:
val- int weeks
-
getWeeks
public int getWeeks()Get the weeks- Returns:
- int the weeks
-
setNegative
public void setNegative(boolean val) Flag a negative duration- Parameters:
val- boolean negative
-
getNegative
public boolean getNegative()Get the negative flag- Returns:
- boolean the negative
-
makeDuration
Return a BwDuration populated from the given String value.- Parameters:
val- String- Returns:
- BwDuration
-
populate
Populate the bean from the given String value.- Parameters:
db- BwDurationval- String value
-
makeDuration
public net.fortuna.ical4j.model.property.Duration makeDuration()Make an ical Duration- Returns:
- Duration
-
isZero
public boolean isZero()Return true if this represents a zero duration- Returns:
- boolean
-
toString
-