Class BwEventAnnotation

All Implemented Interfaces:
Serializable, Comparable<BwEvent>, Comparator<BwEvent>, AlarmsEntity, AttachmentsEntity, AttendeesEntity, CategorisedEntity, CommentedEntity, ConceptEntity, ContactedEntity, DescriptionEntity<BwLongString>, EventEntity, OwnedEntity, RecurrenceEntity, ResourcedEntity, ShareableEntity, StartEndComponent, SummaryEntity, XpropsEntity, org.bedework.util.logging.Logged

public class BwEventAnnotation extends BwEvent
An Event Annotation in Bedework
Version:
1.0
Author:
Mike Douglass
See Also:
  • Constructor Details

    • BwEventAnnotation

      public BwEventAnnotation()
      Constructor
  • Method Details

    • setTarget

      public void setTarget(BwEvent val)
      Parameters:
      val - the target
    • getTarget

      public BwEvent getTarget()
      Returns:
      BwEvent target of this reference
    • setMaster

      public void setMaster(BwEvent val)
      The ultimate master event. This is always a real event. For recurring events it is the master event - for non recurring it is the unannotated original event.

      This allows us to do a single fetch of all related annotations

      Parameters:
      val - the master
    • getMaster

      public BwEvent getMaster()
      Returns:
      BwEvent master for this reference
    • setOverride

      public void setOverride(Boolean val)
      Set the override flag. True if ths is an override for a recurring event, otherwise it is an annotation to an entity or an entity instance
      Parameters:
      val - Boolean true if the event is deleted
    • getOverride

      public Boolean getOverride()
      Get the override flag
      Returns:
      Boolean true if this is an override
    • testOverride

      public boolean testOverride()
      Test the override flag
      Returns:
      boolean true if this is an override
    • setEmptyFlags

      public void setEmptyFlags(String val)
      Set the empty flags
      Parameters:
      val - String set of empty flags
    • getEmptyFlags

      public String getEmptyFlags()
      Get empty flags
      Returns:
      String
    • setEmptyFlag

      public void setEmptyFlag(BwEvent.ProxiedFieldIndex fieldIndex, boolean val)
      Set an empty value flag
      Parameters:
      fieldIndex - index of field we are interested in
      val - true if the field is empty
    • getEmptyFlag

      public Boolean getEmptyFlag(BwEvent.ProxiedFieldIndex fieldIndex)
      Get empty flag
      Parameters:
      fieldIndex - index of field we are interested in
      Returns:
      boolean true if empty
    • toString

      public String toString()
      Overrides:
      toString in class BwEvent
    • clone

      public Object clone()
      Description copied from class: BwUnversionedDbentity
      Make visible
      Overrides:
      clone in class BwEvent
      Returns:
      Object of class T