Package org.hl7.fhir.r4.elementmodel
Class JsonParser
java.lang.Object
org.hl7.fhir.r4.elementmodel.ParserBase
org.hl7.fhir.r4.elementmodel.JsonParser
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r4.elementmodel.ParserBase
ParserBase.ILinkResolver, ParserBase.ValidationPolicy
-
Field Summary
Fields inherited from class org.hl7.fhir.r4.elementmodel.ParserBase
context, errors, linkResolver, policy, showDecorations
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
close()
protected void
void
compose
(Element e, OutputStream stream, IParser.OutputStyle style, String identity) void
compose
(Element e, JsonCreator json) protected void
protected void
parse
(com.google.gson.JsonObject object) parse
(com.google.gson.JsonObject object, Map<com.google.gson.JsonElement, org.hl7.fhir.utilities.json.JsonTrackingParser.LocationData> map) parse
(InputStream stream) void
parseChildItem
(String path, com.google.gson.JsonObject object, Element context, Set<String> processed, Property property) protected void
Methods inherited from class org.hl7.fhir.r4.elementmodel.ParserBase
getDefinition, getDefinition, getLinkResolver, isPrimitive, isShowDecorations, logError, setLinkResolver, setShowDecorations, setupValidation
-
Constructor Details
-
JsonParser
-
-
Method Details
-
parse
- Throws:
Exception
-
parse
- Specified by:
parse
in classParserBase
- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
parse
public Element parse(com.google.gson.JsonObject object, Map<com.google.gson.JsonElement, org.hl7.fhir.utilities.json.JsonTrackingParser.LocationData> map) throws org.hl7.fhir.exceptions.FHIRException- Throws:
org.hl7.fhir.exceptions.FHIRException
-
parse
public Element parse(com.google.gson.JsonObject object) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
parseChildItem
-
prop
- Throws:
IOException
-
open
- Throws:
IOException
-
close
- Throws:
IOException
-
openArray
- Throws:
IOException
-
closeArray
- Throws:
IOException
-
compose
public void compose(Element e, OutputStream stream, IParser.OutputStyle style, String identity) throws org.hl7.fhir.exceptions.FHIRException, IOException - Specified by:
compose
in classParserBase
- Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
compose
- Throws:
Exception
-