Package ca.uhn.fhir.util
Class MetaTagSorterAlphabetical
java.lang.Object
ca.uhn.fhir.util.MetaTagSorterAlphabetical
- All Implemented Interfaces:
IMetaTagSorter
Contains methods to sort resource meta fields that are sets (i.e., tags, security labels and profiles) in alphabetical order.
It sorts the Coding type sets (tags and security labels) based on the (system, code) pair.
The system field has higher priority on sorting than the code field so the Coding set will be sorted first by system
and then by code for each system.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
sort
(org.hl7.fhir.instance.model.api.IBaseMetaType theMeta) void
sortCodings
(List<? extends org.hl7.fhir.instance.model.api.IBaseCoding> theCodings) void
sortPrimitiveStrings
(List<? extends org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theList)
-
Constructor Details
-
MetaTagSorterAlphabetical
public MetaTagSorterAlphabetical()
-
-
Method Details
-
sortCodings
-
sortPrimitiveStrings
public void sortPrimitiveStrings(List<? extends org.hl7.fhir.instance.model.api.IPrimitiveType<String>> theList) -
sort
- Specified by:
sort
in interfaceIMetaTagSorter
-