Package org.hl7.fhir.r5.elementmodel
Class TurtleParser
- java.lang.Object
-
- org.hl7.fhir.r5.elementmodel.ParserBase
-
- org.hl7.fhir.r5.elementmodel.TurtleParser
-
public class TurtleParser extends ParserBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.hl7.fhir.r5.elementmodel.ParserBase
ParserBase.ILinkResolver, ParserBase.NamedElement, ParserBase.ValidationPolicy
-
-
Field Summary
Fields Modifier and Type Field Description static StringFHIR_URI_BASEstatic StringFHIR_VERSION_BASE-
Fields inherited from class org.hl7.fhir.r5.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, org.hl7.fhir.utilities.turtle.Turtle ttl, String base)protected 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)List<ParserBase.NamedElement>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 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 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
protected String getURIType(String uri)
-
getReferenceURI
protected String getReferenceURI(String ref)
-
decorateReference
protected void decorateReference(org.hl7.fhir.utilities.turtle.Turtle.Complex t, Element coding)
-
decorateCanonical
protected void decorateCanonical(org.hl7.fhir.utilities.turtle.Turtle.Complex t, Element canonical)
-
ttlLiteral
public static String ttlLiteral(String value, String type)
-
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
-
-