Package org.hl7.fhir.dstu3.elementmodel
Class ParserBase
java.lang.Object
org.hl7.fhir.dstu3.elementmodel.ParserBase
- Direct Known Subclasses:
JsonLDParser
,JsonParser
,TurtleParser
,VerticalBarParser
,XmlParser
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected IWorkerContext
protected List
<org.hl7.fhir.utilities.validation.ValidationMessage> protected ParserBase.ILinkResolver
protected ParserBase.ValidationPolicy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
compose
(Element e, OutputStream destination, IParser.OutputStyle style, String base) protected StructureDefinition
getDefinition
(int line, int col, String name) protected StructureDefinition
getDefinition
(int line, int col, String ns, String name) boolean
isPrimitive
(String code) void
logError
(int line, int col, String path, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String message, org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity level) abstract Element
parse
(InputStream stream) setLinkResolver
(ParserBase.ILinkResolver linkResolver) void
setupValidation
(ParserBase.ValidationPolicy policy, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors)
-
Field Details
-
context
-
policy
-
errors
-
linkResolver
-
-
Constructor Details
-
ParserBase
-
-
Method Details
-
isPrimitive
-
setupValidation
public void setupValidation(ParserBase.ValidationPolicy policy, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors) -
parse
public abstract Element parse(InputStream stream) throws IOException, org.hl7.fhir.exceptions.FHIRFormatError, org.hl7.fhir.exceptions.DefinitionException, org.hl7.fhir.exceptions.FHIRException - Throws:
IOException
org.hl7.fhir.exceptions.FHIRFormatError
org.hl7.fhir.exceptions.DefinitionException
org.hl7.fhir.exceptions.FHIRException
-
compose
public abstract void compose(Element e, OutputStream destination, IParser.OutputStyle style, String base) throws org.hl7.fhir.exceptions.FHIRException, IOException - Throws:
org.hl7.fhir.exceptions.FHIRException
IOException
-
logError
public void logError(int line, int col, String path, org.hl7.fhir.utilities.validation.ValidationMessage.IssueType type, String message, org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity level) throws org.hl7.fhir.exceptions.FHIRFormatError - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
-
getDefinition
protected StructureDefinition getDefinition(int line, int col, String ns, String name) throws org.hl7.fhir.exceptions.FHIRFormatError - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
-
getDefinition
protected StructureDefinition getDefinition(int line, int col, String name) throws org.hl7.fhir.exceptions.FHIRFormatError - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
-
getLinkResolver
-
setLinkResolver
-