Package org.hl7.fhir.r5.elementmodel
Class TurtleParser
java.lang.Object
org.hl7.fhir.r5.elementmodel.ParserBase
org.hl7.fhir.r5.elementmodel.TurtleParser
-
Nested Class Summary
Nested classes/interfaces inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
ParserBase.ILinkResolver, ParserBase.NamedElement, ParserBase.ValidationPolicy -
Field Summary
FieldsFields inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
context, errors, linkResolver, policy, showDecorations -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcompose(Element e, OutputStream stream, IParser.OutputStyle style, String base)voidprotected voiddecorateCanonical(org.hl7.fhir.utilities.turtle.Turtle.Complex t, Element canonical)protected voiddecorateCoding(org.hl7.fhir.utilities.turtle.Turtle.Complex t, Element coding, org.hl7.fhir.utilities.turtle.Turtle.Section section)protected voiddecorateReference(org.hl7.fhir.utilities.turtle.Turtle.Complex t, Element coding)protected StringgetReferenceURI(String ref)protected StringgetURIType(String uri)parse(InputStream input)static StringttlLiteral(String value, String type)Methods inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
getDefinition, getDefinition, getImpliedProfile, getLinkResolver, isPrimitive, isShowDecorations, logError, parseSingle, setLinkResolver, setShowDecorations, setupValidation
-
Field Details
-
FHIR_URI_BASE
-
FHIR_VERSION_BASE
-
-
Constructor Details
-
TurtleParser
-
-
Method Details
-
parse
public List<ParserBase.NamedElement> parse(InputStream input) throws IOException, org.hl7.fhir.exceptions.FHIRException- Specified by:
parsein classParserBase- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
compose
public void compose(Element e, OutputStream stream, IParser.OutputStyle style, String base) throws IOException, org.hl7.fhir.exceptions.FHIRException- Specified by:
composein classParserBase- Throws:
IOExceptionorg.hl7.fhir.exceptions.FHIRException
-
compose
public void compose(Element e, org.hl7.fhir.utilities.turtle.Turtle ttl, String base) throws org.hl7.fhir.exceptions.FHIRException- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getURIType
-
getReferenceURI
-
decorateReference
-
decorateCanonical
protected void decorateCanonical(org.hl7.fhir.utilities.turtle.Turtle.Complex t, Element canonical) -
ttlLiteral
-
decorateCoding
protected void decorateCoding(org.hl7.fhir.utilities.turtle.Turtle.Complex t, Element coding, org.hl7.fhir.utilities.turtle.Turtle.Section section) throws org.hl7.fhir.exceptions.FHIRException- Throws:
org.hl7.fhir.exceptions.FHIRException
-