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.ValidationPolicy
-
Field Summary
Fields inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
context, idPolicy, linkResolver, logical, policy, showDecorations, signatureServices
-
Constructor Summary
ConstructorDescriptionJsonParser
(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
boolean
protected void
protected void
parse
(InputStream inStream) parse
(InputStream inStream, int line) parse
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.json.model.JsonObject object) parse
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.json.model.JsonObject object, String statedPath) void
parseChildItem
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String path, List<org.hl7.fhir.utilities.json.model.JsonProperty> children, Element context, Property property) protected void
setAllowComments
(boolean allowComments) setElideElements
(boolean elideElements) Methods inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
getContext, getContextUtilities, getDefinition, getDefinition, getIdPolicy, getImpliedProfile, getLinkResolver, getLogical, getPolicy, getProfileUtilities, getReferenceForElement, getSignatureServices, hasLogical, isPrimitive, isShowDecorations, logError, parseSingle, setIdPolicy, setLinkResolver, setLogical, setShowDecorations, setSignatureServices, setupValidation, wantCompose
-
Constructor Details
-
JsonParser
-
JsonParser
-
-
Method Details
-
parse
- Throws:
Exception
-
parse
- Throws:
Exception
-
parse
public List<ValidatedFragment> parse(InputStream inStream) throws IOException, org.hl7.fhir.exceptions.FHIRException - Specified by:
parse
in classParserBase
- Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
parse
public List<ValidatedFragment> parse(InputStream inStream, int line) throws IOException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRException
-
parse
public Element parse(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.json.model.JsonObject object) throws org.hl7.fhir.exceptions.FHIRException - Throws:
org.hl7.fhir.exceptions.FHIRException
-
parse
public Element parse(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, org.hl7.fhir.utilities.json.model.JsonObject object, String statedPath) 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
-
isElideElements
-
setElideElements
-