
Package org.hl7.fhir.r4.elementmodel
Class VerticalBarParser.Delimiters
java.lang.Object
org.hl7.fhir.r4.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 Summary
FieldsModifier and TypeFieldDescriptionstatic final charHl7 defined default delimiter for an escapestatic final charHl7 defined default delimiter for a componentstatic final charHl7 defined default delimiter for a fieldstatic final charHl7 defined default delimiter for a repeatstatic final charHl7 defined default delimiter for a subcomponent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheck()check that the delimiters are validforMSH2()build the MSH-2 contentcharget defined component character for this messagechargetDelimiterEscapeChar(char ch) get escape for ch in an escapegetEscape(char ch) get the escape for a charactercharget defined escape character for this messagecharget defined field character for this messagecharget repeat field character for this messagecharget sub-component field character for this messagebooleanisCellDelimiter(char ch) check to see whether ch is a cell delimiter char (vertical bar parser support)booleanisDelimiter(char ch) check to see whether ch is a delimiter character (vertical bar parser support)booleanisDelimiterEscape(char ch) check to see whether ch represents a delimiter escapebooleanvoidreset()reset to default HL7 valuesvoidsetComponentDelimiter(char componentDelimiter) set defined component character for this messagevoidsetEscapeCharacter(char escapeCharacter) set defined escape character for this messagevoidsetFieldDelimiter(char fieldDelimiter) set defined field character for this messagevoidsetRepetitionDelimiter(char repetitionDelimiter) set repeat field character for this messagevoidsetSubComponentDelimiter(char subComponentDelimiter) set sub-component field character for this message
-
Field Details
-
DEFAULT_DELIMITER_FIELD
Hl7 defined default delimiter for a field- See Also:
-
DEFAULT_DELIMITER_COMPONENT
Hl7 defined default delimiter for a component- See Also:
-
DEFAULT_DELIMITER_SUBCOMPONENT
Hl7 defined default delimiter for a subcomponent- See Also:
-
DEFAULT_DELIMITER_REPETITION
Hl7 defined default delimiter for a repeat- See Also:
-
DEFAULT_CHARACTER_ESCAPE
Hl7 defined default delimiter for an escape- See Also:
-
-
Constructor Details
-
Delimiters
public Delimiters()create
-
-
Method Details
-
matches
-
getComponentDelimiter
get defined component character for this message- Returns:
-
setComponentDelimiter
set defined component character for this message- Parameters:
componentDelimiter-
-
getEscapeCharacter
get defined escape character for this message- Returns:
-
setEscapeCharacter
set defined escape character for this message- Parameters:
escapeCharacter-
-
getFieldDelimiter
get defined field character for this message- Returns:
-
setFieldDelimiter
set defined field character for this message- Parameters:
fieldDelimiter-
-
getRepetitionDelimiter
get repeat field character for this message- Returns:
-
setRepetitionDelimiter
set repeat field character for this message- Parameters:
repetitionDelimiter-
-
getSubComponentDelimiter
get sub-component field character for this message- Returns:
-
setSubComponentDelimiter
set sub-component field character for this message- Parameters:
subComponentDelimiter-
-
reset
reset to default HL7 values -
check
check that the delimiters are valid- Throws:
org.hl7.fhir.exceptions.FHIRException
-
isDelimiter
check to see whether ch is a delimiter character (vertical bar parser support)- Parameters:
ch-- Returns:
-
isCellDelimiter
check to see whether ch is a cell delimiter char (vertical bar parser support)- Parameters:
ch-- Returns:
-
getEscape
get the escape for a character- Parameters:
ch-- Returns:
-
forMSH2
build the MSH-2 content- Returns:
-
isDelimiterEscape
check to see whether ch represents a delimiter escape- Parameters:
ch-- Returns:
-
getDelimiterEscapeChar
get escape for ch in an escape- Parameters:
ch-- Returns:
- Throws:
org.hl7.fhir.exceptions.DefinitionExceptionorg.hl7.fhir.exceptions.FHIRException
-