|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ohf.ihe.common.hl7v2.format.HL7V2MessageUtils
public class HL7V2MessageUtils
Utilities class to aid in the contruction of HL7 V2 message strings. We anticipate this functionality (some day) to be absorbed into the HL7v2 stack provided in org.eclipse.ohf.hl7v2
| Constructor Summary | |
|---|---|
HL7V2MessageUtils()
|
|
| Method Summary | |
|---|---|
static java.util.ArrayList |
parse(java.lang.String msg,
char delimiter)
Parses the given message using the given delimiter into a String array in which each element is reserved for a single component of the message. |
static void |
trimDelimiters(java.lang.StringBuffer msg,
char delimiter)
Trims trailing delimiters from the message string |
static void |
trimDelimiters(java.lang.StringBuffer msg,
char delimiter,
char subdelimiter)
Trims trailing delimiters and sub delimiters from the message string |
static void |
trimDelimiters(java.lang.StringBuffer msg,
char subcomponent,
char component,
char field,
char repetition)
Trims trailing delimiters from the segment message string |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HL7V2MessageUtils()
| Method Detail |
|---|
public static void trimDelimiters(java.lang.StringBuffer msg,
char delimiter)
msg - delimiter -
public static void trimDelimiters(java.lang.StringBuffer msg,
char delimiter,
char subdelimiter)
msg - delimiter - subdelimiter -
public static void trimDelimiters(java.lang.StringBuffer msg,
char subcomponent,
char component,
char field,
char repetition)
msg - subcomponent - component - field - repetition -
public static java.util.ArrayList parse(java.lang.String msg,
char delimiter)
msg - the message stringdelimiter - the HL7 delimiter of the message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||