Class JsonParser
- java.lang.Object
-
- org.hl7.fhir.dstu2016may.metamodel.ParserBase
-
- org.hl7.fhir.dstu2016may.metamodel.JsonParser
-
public class JsonParser extends ParserBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hl7.fhir.dstu2016may.metamodel.ParserBase
ParserBase.ValidationPolicy
-
-
Field Summary
-
Fields inherited from class org.hl7.fhir.dstu2016may.metamodel.ParserBase
context, errors, policy
-
-
Constructor Summary
Constructors Constructor Description JsonParser(IWorkerContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclose()protected voidcloseArray()voidcompose(Element e, OutputStream stream, IParser.OutputStyle style, String identity)protected voidopen(String name)protected voidopenArray(String name)Elementparse(com.google.gson.JsonObject object)Elementparse(com.google.gson.JsonObject object, Map<com.google.gson.JsonElement,JsonTrackingParser.LocationData> map)Elementparse(InputStream stream)protected voidprop(String name, String value)-
Methods inherited from class org.hl7.fhir.dstu2016may.metamodel.ParserBase
getChildProperties, getDefinition, getDefinition, isPrimitive, logError, setupValidation
-
-
-
-
Constructor Detail
-
JsonParser
public JsonParser(IWorkerContext context)
-
-
Method Detail
-
parse
public Element parse(InputStream stream) throws Exception
- Specified by:
parsein classParserBase- Throws:
Exception
-
parse
public Element parse(com.google.gson.JsonObject object, Map<com.google.gson.JsonElement,JsonTrackingParser.LocationData> map) throws Exception
- Throws:
Exception
-
prop
protected void prop(String name, String value) throws IOException
- Throws:
IOException
-
open
protected void open(String name) throws IOException
- Throws:
IOException
-
close
protected void close() throws IOException
- Throws:
IOException
-
openArray
protected void openArray(String name) throws IOException
- Throws:
IOException
-
closeArray
protected void closeArray() throws IOException
- Throws:
IOException
-
compose
public void compose(Element e, OutputStream stream, IParser.OutputStyle style, String identity) throws Exception
- Specified by:
composein classParserBase- Throws:
Exception
-
-