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
    • getAllResources

      public List<org.hl7.fhir.instance.model.api.IBaseResource> getAllResources()
      Description copied from interface: IPreResourceShowDetails
      Returns a List containing all resources that will be shown. The returned list will have the same relative ordering as if the resources were retrieved using IPreResourceShowDetails.getResource(int), but any null entries will be filtered out.

      The returned List may not be modified. Use this method only if you are not looking to make changes.

      Specified by:
      getAllResources in interface IPreResourceShowDetails
    • 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()