Class SimplePreResourceShowDetails

java.lang.Object
ca.uhn.fhir.rest.api.server.SimplePreResourceShowDetails
All Implemented Interfaces:
IPreResourceShowDetails, Iterable<org.hl7.fhir.instance.model.api.IBaseResource>

  • Constructor Details

  • Method Details

    • size

      public int size()
      Specified by:
      size in interface IPreResourceShowDetails
      Returns:
      Returns the number of resources being shown
    • getResource

      public org.hl7.fhir.instance.model.api.IBaseResource getResource(int theIndex)
      Specified by:
      getResource in interface IPreResourceShowDetails
      Returns:
      Returns the resource at the given index. If you wish to make modifications to any resources
    • setResource

      public void setResource(int theIndex, org.hl7.fhir.instance.model.api.IBaseResource theResource)
      Description copied from interface: IPreResourceShowDetails
      Replace the resource being returned at index
      Specified by:
      setResource in interface IPreResourceShowDetails
      Parameters:
      theIndex - The resource index
      theResource - The resource at index
    • markResourceAtIndexAsSubset

      public void markResourceAtIndexAsSubset(int theIndex)
      Description copied from interface: IPreResourceShowDetails
      Indicates that data is being masked from within the resource at the given index. This generally flags to the rest of the stack that the resource should include a SUBSET tag as an indication to consumers that some data has been removed.
      Specified by:
      markResourceAtIndexAsSubset in interface IPreResourceShowDetails
      Parameters:
      theIndex - The resource index
    • iterator

      public Iterator<org.hl7.fhir.instance.model.api.IBaseResource> iterator()
      Specified by:
      iterator in interface Iterable<org.hl7.fhir.instance.model.api.IBaseResource>
    • toList

      public List<org.hl7.fhir.instance.model.api.IBaseResource> toList()