Class RdfParserBase

All Implemented Interfaces:
IParser
Direct Known Subclasses:
RdfParser

public abstract class RdfParserBase extends ParserBase implements IParser
  • Constructor Details

  • Method Details

    • composeResource

      protected abstract void composeResource(org.hl7.fhir.utilities.turtle.Turtle.Complex complex, Resource resource) throws IOException
      Throws:
      IOException
    • getType

      public ParserType getType()
      Description copied from interface: IParser
      check what kind of parser this is
      Specified by:
      getType in interface IParser
      Returns:
      what kind of parser this is
    • parse

      public Resource parse(InputStream input) throws IOException, org.hl7.fhir.exceptions.FHIRFormatError
      Description copied from interface: IParser
      parse content that is known to be a resource
      Specified by:
      parse in interface IParser
      Throws:
      IOException
      org.hl7.fhir.exceptions.FHIRFormatError
    • parseType

      public Type parseType(InputStream input, String knownType) throws IOException, org.hl7.fhir.exceptions.FHIRFormatError
      Description copied from interface: IParser
      This is used to parse a type - a fragment of a resource. There's no reason to use this in production - it's used in the build tools Not supported by all implementations
      Specified by:
      parseType in interface IParser
      Parameters:
      input -
      knownType - . if this is blank, the parser may try to infer the type (xml only)
      Returns:
      Throws:
      IOException
      org.hl7.fhir.exceptions.FHIRFormatError
    • compose

      public void compose(OutputStream stream, Resource resource) throws IOException
      Description copied from interface: IParser
      Compose a resource to a stream, possibly using pretty presentation for a human reader (used in the spec, for example, but not normally in production)
      Specified by:
      compose in interface IParser
      Throws:
      IOException
    • compose

      public void compose(OutputStream stream, Type type, String rootName) throws IOException
      Description copied from interface: IParser
      Compose a type to a stream, possibly using pretty presentation for a human reader (used in the spec, for example, but not normally in production) Not supported by all implementations. rootName is ignored in the JSON format
      Specified by:
      compose in interface IParser
      Throws:
      IOException
    • ttlLiteral

      protected String ttlLiteral(String value)
    • composeXhtml

      protected void composeXhtml(org.hl7.fhir.utilities.turtle.Turtle.Complex t, String string, String string2, org.hl7.fhir.utilities.xhtml.XhtmlNode div, int i)
    • decorateCode

      protected void decorateCode(org.hl7.fhir.utilities.turtle.Turtle.Complex t, Enumeration<? extends Enum> value)
    • decorateCode

      protected void decorateCode(org.hl7.fhir.utilities.turtle.Turtle.Complex t, CodeType value)
    • decorateCoding

      protected void decorateCoding(org.hl7.fhir.utilities.turtle.Turtle.Complex t, Coding element)
    • decorateCodeableConcept

      protected void decorateCodeableConcept(org.hl7.fhir.utilities.turtle.Turtle.Complex t, CodeableConcept element)