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 voidclose()protected voidvoidcompose(Element e, OutputStream stream, IParser.OutputStyle style, String identity) voidcompose(Element e, JsonCreator json) booleanprotected voidprotected voidparse(InputStream stream) parse(org.hl7.fhir.utilities.json.model.JsonObject object) voidparseChildItem(String path, Map<String, org.hl7.fhir.utilities.json.model.JsonProperty> children, Element context, Set<String> processed, Property property) protected voidsetAllowComments(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:
parsein classParserBase- Throws:
IOExceptionorg.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:
composein classParserBase- Throws:
org.hl7.fhir.exceptions.FHIRExceptionIOException
-
compose
- Throws:
Exception
-
isAllowComments
-
setAllowComments
-