public interface IJsonLikeParser extends IParser
Thread safety: Parsers are not guaranteed to be thread safe. Create a new parser instance for every thread or every message being parsed/encoded.
| Modifier and Type | Method and Description |
|---|---|
void |
encodeResourceToJsonLikeWriter(IBaseResource theResource,
JsonLikeWriter theJsonLikeWriter) |
<T extends IBaseResource> |
parseResource(Class<T> theResourceType,
JsonLikeStructure theJsonLikeStructure)
Parses a resource from a JSON-like data structure
|
IBaseResource |
parseResource(JsonLikeStructure theJsonLikeStructure)
Parses a resource from a JSON-like data structure
|
encodeResourceToString, encodeResourceToWriter, getDontStripVersionsFromReferencesAtPaths, getEncodeForceResourceId, getEncoding, getOverrideResourceIdWithBundleEntryFullUrl, getPreferTypes, getStripVersionsFromReferences, isEncodeElementsAppliesToChildResourcesOnly, isOmitResourceId, isSummaryMode, parseResource, parseResource, parseResource, parseResource, parseResource, parseResource, setDontEncodeElements, setDontStripVersionsFromReferencesAtPaths, setDontStripVersionsFromReferencesAtPaths, setEncodeElements, setEncodeElementsAppliesToChildResourcesOnly, setEncodeForceResourceId, setOmitResourceId, setOverrideResourceIdWithBundleEntryFullUrl, setParserErrorHandler, setPreferTypes, setPrettyPrint, setServerBaseUrl, setStripVersionsFromReferences, setSummaryMode, setSuppressNarrativesvoid encodeResourceToJsonLikeWriter(IBaseResource theResource, JsonLikeWriter theJsonLikeWriter) throws IOException, DataFormatException
IOExceptionDataFormatException<T extends IBaseResource> T parseResource(Class<T> theResourceType, JsonLikeStructure theJsonLikeStructure) throws DataFormatException
theResourceType - The resource type to use. This can be used to explicitly specify a class which extends a built-in type
(e.g. a custom type extending the default Patient class)theJsonLikeStructure - The JSON-like structure to parseDataFormatException - If the resource can not be parsed because the data is not recognized or invalid for any reasonIBaseResource parseResource(JsonLikeStructure theJsonLikeStructure) throws DataFormatException
theJsonLikeStructure - The JSON-like structure to parseIResource or
IAnyResource depending on the specific FhirContext which created this parser.DataFormatException - If the resource can not be parsed because the data is not recognized or invalid for any reasonCopyright © 2014–2019 University Health Network. All rights reserved.