Package org.hl7.fhir.r5.elementmodel
Class ParserBase
java.lang.Object
org.hl7.fhir.r5.elementmodel.ParserBase
- Direct Known Subclasses:
FmlParser
,JsonParser
,NDJsonParser
,ResourceParser
,SHCParser
,SHLParser
,TurtleParser
,VerticalBarParser
,XmlParser
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static interface
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprotected IWorkerContext
protected ParserBase.IdRenderingPolicy
protected ParserBase.ILinkResolver
protected StructureDefinition
protected ParserBase.ValidationPolicy
protected boolean
protected org.hl7.fhir.utilities.validation.IDigitalSignatureServices
-
Constructor Summary
ConstructorDescriptionParserBase
(IWorkerContext context) ParserBase
(IWorkerContext context, ProfileUtilities utilities) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
compose
(Element e, OutputStream destination, IParser.OutputStyle style, String base) protected StructureDefinition
getDefinition
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, int line, int col, String name) protected StructureDefinition
getDefinition
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, int line, int col, String ns, String name) protected String
getReferenceForElement
(Element element) org.hl7.fhir.utilities.validation.IDigitalSignatureServices
boolean
boolean
isPrimitive
(String code) boolean
void
logError
(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String ruleDate, 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 List
<ValidatedFragment> parse
(InputStream stream) parseSingle
(InputStream stream, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors) void
setIdPolicy
(ParserBase.IdRenderingPolicy idPolicy) setLinkResolver
(ParserBase.ILinkResolver linkResolver) setLogical
(StructureDefinition logical) void
setShowDecorations
(boolean showDecorations) void
setSignatureServices
(org.hl7.fhir.utilities.validation.IDigitalSignatureServices signatureServices) void
protected boolean
wantCompose
(String path, Element e)
-
Field Details
-
context
-
policy
-
linkResolver
-
showDecorations
-
idPolicy
-
logical
-
signatureServices
-
-
Constructor Details
-
ParserBase
-
ParserBase
-
-
Method Details
-
isPrimitive
-
setupValidation
-
parse
public abstract List<ValidatedFragment> 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
-
parseSingle
public Element parseSingle(InputStream stream, List<org.hl7.fhir.utilities.validation.ValidationMessage> errors) 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(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, String ruleDate, 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(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, int line, int col, String ns, String name) throws org.hl7.fhir.exceptions.FHIRFormatError - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
-
getDefinition
protected StructureDefinition getDefinition(List<org.hl7.fhir.utilities.validation.ValidationMessage> errors, int line, int col, String name) throws org.hl7.fhir.exceptions.FHIRFormatError - Throws:
org.hl7.fhir.exceptions.FHIRFormatError
-
getLinkResolver
-
setLinkResolver
-
isShowDecorations
-
setShowDecorations
-
getImpliedProfile
-
getIdPolicy
-
setIdPolicy
-
wantCompose
-
hasLogical
-
getLogical
-
setLogical
-
getSignatureServices
-
setSignatureServices
public void setSignatureServices(org.hl7.fhir.utilities.validation.IDigitalSignatureServices signatureServices) -
getReferenceForElement
-
getContext
-
getPolicy
-
getProfileUtilities
-
getContextUtilities
-