
Package org.hl7.fhir.r5.elementmodel
Class JsonParser
java.lang.Object
org.hl7.fhir.r5.elementmodel.ParserBase
org.hl7.fhir.r5.elementmodel.JsonParser
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
ParserBase.IdRenderingPolicy, ParserBase.ILinkResolver, ParserBase.NamedElement, ParserBase.ValidationPolicy
-
Field Summary
Fields inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
context, errors, idPolicy, linkResolver, logical, policy, showDecorations
-
Constructor Summary
ConstructorsConstructorDescriptionJsonParser
(IWorkerContext context) JsonParser
(IWorkerContext context, ProfileUtilities utilities) -
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) boolean
protected void
protected void
parse
(InputStream stream) parse
(org.hl7.fhir.utilities.json.model.JsonObject object) void
parseChildItem
(String path, Map<String, org.hl7.fhir.utilities.json.model.JsonProperty> children, Element context, Set<String> processed, Property property) protected void
setAllowComments
(boolean allowComments) Methods inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
getDefinition, getDefinition, getIdPolicy, getImpliedProfile, getLinkResolver, getLogical, hasLogical, isPrimitive, isShowDecorations, logError, parseSingle, setIdPolicy, setLinkResolver, setLogical, setShowDecorations, setupValidation, wantCompose
-
Constructor Details
-
JsonParser
-
JsonParser
-
-
Method Details
-
parse
- Throws:
Exception
-
parse
public List<ParserBase.NamedElement> parse(InputStream stream) throws IOException, org.hl7.fhir.exceptions.FHIRException - Specified by:
parse
in classParserBase
- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
parse
public Element parse(org.hl7.fhir.utilities.json.model.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
-
isAllowComments
-
setAllowComments
-