Package org.hl7.fhir.r4.elementmodel
Class TurtleParser
- java.lang.Object
-
- org.hl7.fhir.r4.elementmodel.ParserBase
-
- org.hl7.fhir.r4.elementmodel.TurtleParser
-
public class TurtleParser extends ParserBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hl7.fhir.r4.elementmodel.ParserBase
ParserBase.ILinkResolver, ParserBase.ValidationPolicy
-
-
Field Summary
Fields Modifier and Type Field Description static StringFHIR_URI_BASEstatic StringFHIR_VERSION_BASE-
Fields inherited from class org.hl7.fhir.r4.elementmodel.ParserBase
context, errors, linkResolver, policy, showDecorations
-
-
Constructor Summary
Constructors Constructor Description TurtleParser(IWorkerContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompose(Element e, OutputStream stream, IParser.OutputStyle style, String base)voidcompose(Element e, Turtle ttl, String base)protected voiddecorateCanonical(Turtle.Complex t, Element canonical)protected voiddecorateCoding(Turtle.Complex t, Element coding, Turtle.Section section)protected voiddecorateReference(Turtle.Complex t, Element coding)protected StringgetReferenceURI(String ref)protected StringgetURIType(String uri)Elementparse(InputStream input)static StringttlLiteral(String value, String type)-
Methods inherited from class org.hl7.fhir.r4.elementmodel.ParserBase
getDefinition, getDefinition, getLinkResolver, isPrimitive, isShowDecorations, logError, setLinkResolver, setShowDecorations, setupValidation
-
-
-
-
Field Detail
-
FHIR_URI_BASE
public static String FHIR_URI_BASE
-
FHIR_VERSION_BASE
public static String FHIR_VERSION_BASE
-
-
Constructor Detail
-
TurtleParser
public TurtleParser(IWorkerContext context)
-
-
Method Detail
-
parse
public Element 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, Turtle ttl, String base) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getURIType
protected String getURIType(String uri)
-
getReferenceURI
protected String getReferenceURI(String ref)
-
decorateReference
protected void decorateReference(Turtle.Complex t, Element coding)
-
decorateCanonical
protected void decorateCanonical(Turtle.Complex t, Element canonical)
-
ttlLiteral
public static String ttlLiteral(String value, String type)
-
decorateCoding
protected void decorateCoding(Turtle.Complex t, Element coding, Turtle.Section section) throws org.hl7.fhir.exceptions.FHIRException
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
-