Class VerticalBarParser.Delimiters

java.lang.Object
org.hl7.fhir.dstu3.elementmodel.VerticalBarParser.Delimiters
Enclosing class:
VerticalBarParser

Delimiters for a message. Note that the application rarely needs to concern itself with this information; it mainly exists for internal use. However if a message is being written to a spec that calls for non-standard delimiters, the application can set them here.
Author:
Grahame
  • Field Details

  • Constructor Details

  • Method Details

    • matches

      public boolean matches(VerticalBarParser.Delimiters other)
    • getComponentDelimiter

      public char getComponentDelimiter()
      get defined component character for this message
      Returns:
    • setComponentDelimiter

      public void setComponentDelimiter(char componentDelimiter)
      set defined component character for this message
      Parameters:
      componentDelimiter -
    • getEscapeCharacter

      public char getEscapeCharacter()
      get defined escape character for this message
      Returns:
    • setEscapeCharacter

      public void setEscapeCharacter(char escapeCharacter)
      set defined escape character for this message
      Parameters:
      escapeCharacter -
    • getFieldDelimiter

      public char getFieldDelimiter()
      get defined field character for this message
      Returns:
    • setFieldDelimiter

      public void setFieldDelimiter(char fieldDelimiter)
      set defined field character for this message
      Parameters:
      fieldDelimiter -
    • getRepetitionDelimiter

      public char getRepetitionDelimiter()
      get repeat field character for this message
      Returns:
    • setRepetitionDelimiter

      public void setRepetitionDelimiter(char repetitionDelimiter)
      set repeat field character for this message
      Parameters:
      repetitionDelimiter -
    • getSubComponentDelimiter

      public char getSubComponentDelimiter()
      get sub-component field character for this message
      Returns:
    • setSubComponentDelimiter

      public void setSubComponentDelimiter(char subComponentDelimiter)
      set sub-component field character for this message
      Parameters:
      subComponentDelimiter -
    • reset

      public void reset()
      reset to default HL7 values
    • check

      public void check() throws org.hl7.fhir.exceptions.FHIRException
      check that the delimiters are valid
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • isDelimiter

      public boolean isDelimiter(char ch)
      check to see whether ch is a delimiter character (vertical bar parser support)
      Parameters:
      ch -
      Returns:
    • isCellDelimiter

      public boolean isCellDelimiter(char ch)
      check to see whether ch is a cell delimiter char (vertical bar parser support)
      Parameters:
      ch -
      Returns:
    • getEscape

      public String getEscape(char ch)
      get the escape for a character
      Parameters:
      ch -
      Returns:
    • forMSH2

      public String forMSH2()
      build the MSH-2 content
      Returns:
    • isDelimiterEscape

      public boolean isDelimiterEscape(char ch)
      check to see whether ch represents a delimiter escape
      Parameters:
      ch -
      Returns:
    • getDelimiterEscapeChar

      public char getDelimiterEscapeChar(char ch) throws org.hl7.fhir.exceptions.DefinitionException
      get escape for ch in an escape
      Parameters:
      ch -
      Returns:
      Throws:
      org.hl7.fhir.exceptions.DefinitionException
      org.hl7.fhir.exceptions.FHIRException