Class BwDuration

java.lang.Object
org.bedework.calfacade.BwDuration
All Implemented Interfaces:
Serializable

public class BwDuration extends Object implements Serializable
Class representing a duration.
Version:
1.0
Author:
Mike Douglass douglm@bedework.edu
See Also:
  • 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

      public static BwDuration makeDuration(String val)
      Return a BwDuration populated from the given String value.
      Parameters:
      val - String
      Returns:
      BwDuration
    • populate

      public static void populate(BwDuration db, String val)
      Populate the bean from the given String value.
      Parameters:
      db - BwDuration
      val - 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

      public String toString()
      Overrides:
      toString in class Object