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>
public class SimplePreResourceShowDetails extends Object implements IPreResourceShowDetails, Iterable<org.hl7.fhir.instance.model.api.IBaseResource>
-
-
Constructor Summary
Constructors Constructor Description SimplePreResourceShowDetails(List<T> theResources)SimplePreResourceShowDetails(org.hl7.fhir.instance.model.api.IBaseResource theResource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.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()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
SimplePreResourceShowDetails
public SimplePreResourceShowDetails(org.hl7.fhir.instance.model.api.IBaseResource theResource)
-
SimplePreResourceShowDetails
public SimplePreResourceShowDetails(List<T> theResources)
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceIPreResourceShowDetails- Returns:
- Returns the number of resources being shown
-
getResource
public org.hl7.fhir.instance.model.api.IBaseResource getResource(int theIndex)
- Specified by:
getResourcein interfaceIPreResourceShowDetails- 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:IPreResourceShowDetailsReplace the resource being returned at index- Specified by:
setResourcein interfaceIPreResourceShowDetails- Parameters:
theIndex- The resource indextheResource- The resource at index
-
markResourceAtIndexAsSubset
public void markResourceAtIndexAsSubset(int theIndex)
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
-
-