Package org.hl7.fhir.dstu3.elementmodel
Class JsonParser
java.lang.Object
org.hl7.fhir.dstu3.elementmodel.ParserBase
org.hl7.fhir.dstu3.elementmodel.JsonParser
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.dstu3.elementmodel.ParserBase
ParserBase.ILinkResolver, ParserBase.ValidationPolicy
-
Field Summary
Fields inherited from class org.hl7.fhir.dstu3.elementmodel.ParserBase
context, errors, linkResolver, policy
-
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) protected void
Methods inherited from class org.hl7.fhir.dstu3.elementmodel.ParserBase
getDefinition, getDefinition, getLinkResolver, isPrimitive, logError, setLinkResolver, setupValidation
-
Constructor Details
-
JsonParser
-
-
Method Details
-
parse
- Throws:
Exception
-
parse
public Element parse(InputStream stream) throws IOException, org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException - Specified by:
parse
in classParserBase
- Throws:
IOException
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
-
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.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException- Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
-
parse
public Element parse(com.google.gson.JsonObject object) throws org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
-
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
-