Class AbstractEvent

java.lang.Object
dev.dsf.fhir.event.AbstractEvent
All Implemented Interfaces:
Event
Direct Known Subclasses:
AbstractEventWithResource, ResourceDeletedEvent

public class AbstractEvent extends Object implements Event
  • Constructor Details

    • AbstractEvent

      public AbstractEvent(Class<? extends org.hl7.fhir.r4.model.Resource> type, String id)
      Parameters:
      type - not null
      id - not null
  • Method Details

    • getResourceType

      public Class<? extends org.hl7.fhir.r4.model.Resource> getResourceType()
      Specified by:
      getResourceType in interface Event
      Returns:
      never null
    • getId

      public String getId()
      Specified by:
      getId in interface Event
      Returns:
      never null
    • getResource

      public org.hl7.fhir.r4.model.Resource getResource()
      Specified by:
      getResource in interface Event
      Returns:
      always null