Class BwRecurrenceInstance

java.lang.Object
org.bedework.calfacade.BwRecurrenceInstance
All Implemented Interfaces:
Serializable, Comparable<BwRecurrenceInstance>, Comparator<BwRecurrenceInstance>

public class BwRecurrenceInstance extends Object implements Comparable<BwRecurrenceInstance>, Comparator<BwRecurrenceInstance>, Serializable
Class to represent an instance of a recurrence. An instance is represented by the date and time of its dtStart and dtEnd together with a recurrence id. We maintain a reference to the master event and a possibly null reference to an overiding event object which contains changes, (annotations etc) to that instance.
Version:
1.0
Author:
Mike Douglass douglm@bedework.edu
See Also:
  • Constructor Details

    • BwRecurrenceInstance

      public BwRecurrenceInstance()
      Constructor
  • Method Details

    • setSeq

      public void setSeq(int val)
      Set the seq for this entity
      Parameters:
      val - int seq
    • getSeq

      public int getSeq()
      Get the entity seq
      Returns:
      int the entity seq
    • setDtstart

      public void setDtstart(BwDateTime val)
      Set the event's start
      Parameters:
      val - Event's start
    • getDtstart

      public BwDateTime getDtstart()
      Get the event's start
      Returns:
      The event's start
    • setDtend

      public void setDtend(BwDateTime val)
      Set the event's end
      Parameters:
      val - Event's end
    • getDtend

      public BwDateTime getDtend()
      Get the event's end
      Returns:
      The event's end
    • setRecurrenceId

      public void setRecurrenceId(String val)
      Set the event's recurrence id
      Parameters:
      val - recurrence id
    • getRecurrenceId

      public String getRecurrenceId()
      Get the event's recurrence id
      Returns:
      the event's recurrence id
    • getMaster

      public BwEvent getMaster()
      Returns:
      Returns the master.
    • setMaster

      public void setMaster(BwEvent val)
      Parameters:
      val - The master to set.
    • getOverride

      public BwEventAnnotation getOverride()
      Returns:
      Returns the override.
    • setOverride

      public void setOverride(BwEventAnnotation val)
      Parameters:
      val - The override to set.
    • compare

      public int compare(BwRecurrenceInstance inst1, BwRecurrenceInstance inst2)
      Specified by:
      compare in interface Comparator<BwRecurrenceInstance>
    • compareTo

      public int compareTo(BwRecurrenceInstance o2)
      Specified by:
      compareTo in interface Comparable<BwRecurrenceInstance>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Comparator<BwRecurrenceInstance>
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object