Package ca.uhn.fhir.rest.api.server
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 Summary
ConstructorsConstructorDescriptionSimplePreResourceShowDetails(Collection<T> theResources) Constructor for a collection of resourcesSimplePreResourceShowDetails(org.hl7.fhir.instance.model.api.IBaseResource theResource) Constructor for a single resource -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IBaseResourcegetResource(int theIndex) Iterator<org.hl7.fhir.instance.model.api.IBaseResource>iterator()voidmarkResourceAtIndexAsSubset(int theIndex) Indicates that data is being masked from within the resource at the given index.voidsetResource(int theIndex, org.hl7.fhir.instance.model.api.IBaseResource theResource) Replace the resource being returned at indexintsize()List<org.hl7.fhir.instance.model.api.IBaseResource>toList()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SimplePreResourceShowDetails
Constructor for a single resource -
SimplePreResourceShowDetails
Constructor for a collection of resources
-
-
Method Details
-
size
- Specified by:
sizein interfaceIPreResourceShowDetails- Returns:
- Returns the number of resources being shown
-
getResource
- Specified by:
getResourcein interfaceIPreResourceShowDetails- Returns:
- Returns the resource at the given index. If you wish to make modifications to any resources
-
setResource
Description copied from interface:IPreResourceShowDetailsReplace the resource being returned at index- Specified by:
setResourcein interfaceIPreResourceShowDetails- Parameters:
theIndex- The resource indextheResource- The resource at index
-
markResourceAtIndexAsSubset
Description copied from interface:IPreResourceShowDetailsIndicates 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:
markResourceAtIndexAsSubsetin interfaceIPreResourceShowDetails- Parameters:
theIndex- The resource index
-
iterator
-
toList
-