|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.parser.EncodingCharacters
public class EncodingCharacters
Represents the set of special characters used to encode traditionally encoded HL7 messages.
Constructor Summary | |
---|---|
EncodingCharacters(char fieldSeparator,
char componentSeparator,
char repetitionSeparator,
char escapeCharacter,
char subcomponentSeparator)
|
|
EncodingCharacters(char fieldSeparator,
java.lang.String encodingCharacters)
Creates new EncodingCharacters object with the given character values. |
|
EncodingCharacters(EncodingCharacters other)
copies contents of "other" |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object o)
|
char |
getComponentSeparator()
Returns the component separator. |
char |
getEscapeCharacter()
Returns the escape character. |
char |
getFieldSeparator()
Returns the field separator. |
static EncodingCharacters |
getInstance(Message message)
Returns an instance using the MSH-1 and MSH-2 values of the given message |
char |
getRepetitionSeparator()
Returns the repetition separator. |
char |
getSubcomponentSeparator()
Returns the subcomponent separator. |
int |
hashCode()
|
void |
setComponentSeparator(char newComponentSep)
|
void |
setEscapeCharacter(char newEscapeChar)
|
void |
setFieldSeparator(char newFieldSep)
|
void |
setRepetitionSeparator(char newRepetitionSep)
|
void |
setSubcomponentSeparator(char newSubcomponentSep)
|
java.lang.String |
toString()
Returns the encoding characters (not including field separator) as a string. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EncodingCharacters(char fieldSeparator, java.lang.String encodingCharacters)
encodingCharacters
- consists of the characters that appear in
MSH-2 (see section 2.8 of the HL7 spec). The characters are
Component Separator, Repetition Separator, Escape Character, and
Subcomponent Separator (in that order).public EncodingCharacters(char fieldSeparator, char componentSeparator, char repetitionSeparator, char escapeCharacter, char subcomponentSeparator)
public EncodingCharacters(EncodingCharacters other)
Method Detail |
---|
public static EncodingCharacters getInstance(Message message) throws HL7Exception
HL7Exception
- If either MSH-1 or MSH-2 are not populatedpublic char getFieldSeparator()
public char getComponentSeparator()
public char getRepetitionSeparator()
public char getEscapeCharacter()
public char getSubcomponentSeparator()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object clone()
clone
in class java.lang.Object
public void setFieldSeparator(char newFieldSep)
public void setComponentSeparator(char newComponentSep)
public void setRepetitionSeparator(char newRepetitionSep)
public void setEscapeCharacter(char newEscapeChar)
public void setSubcomponentSeparator(char newSubcomponentSep)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |