Package org.hl7.fhir.dstu3.elementmodel
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 Summary
Modifier and TypeFieldDescriptionstatic final char
Hl7 defined default delimiter for an escapestatic final char
Hl7 defined default delimiter for a componentstatic final char
Hl7 defined default delimiter for a fieldstatic final char
Hl7 defined default delimiter for a repeatstatic final char
Hl7 defined default delimiter for a subcomponent -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
check()
check that the delimiters are validforMSH2()
build the MSH-2 contentchar
get defined component character for this messagechar
getDelimiterEscapeChar
(char ch) get escape for ch in an escapegetEscape
(char ch) get the escape for a characterchar
get defined escape character for this messagechar
get defined field character for this messagechar
get repeat field character for this messagechar
get sub-component field character for this messageboolean
isCellDelimiter
(char ch) check to see whether ch is a cell delimiter char (vertical bar parser support)boolean
isDelimiter
(char ch) check to see whether ch is a delimiter character (vertical bar parser support)boolean
isDelimiterEscape
(char ch) check to see whether ch represents a delimiter escapeboolean
void
reset()
reset to default HL7 valuesvoid
setComponentDelimiter
(char componentDelimiter) set defined component character for this messagevoid
setEscapeCharacter
(char escapeCharacter) set defined escape character for this messagevoid
setFieldDelimiter
(char fieldDelimiter) set defined field character for this messagevoid
setRepetitionDelimiter
(char repetitionDelimiter) set repeat field character for this messagevoid
setSubComponentDelimiter
(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.DefinitionException
org.hl7.fhir.exceptions.FHIRException
-