|
Sun Adapter for TCP/IP HL7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.stc.connector.hl7.framework.structure.component.GenericComponentImpl
com.stc.connector.hl7.framework.structure.msg.GenericMessageImpl
public class GenericMessageImpl
This class represents a generic implementation of HL7 message.
| Field Summary | |
|---|---|
static java.lang.String |
version
|
| Fields inherited from interface com.stc.connector.hl7.framework.structure.msg.Message |
|---|
DEFAULT_SEGMENT_TERMINATOR_CHAR, DEFAULT_SEGMENT_TERMINATOR_STRING |
| Constructor Summary | |
|---|---|
GenericMessageImpl()
Constructor for GenericMessageImpl. |
|
GenericMessageImpl(java.lang.String name,
Segment[] segments)
Constructor for GenericMessageImpl. |
|
GenericMessageImpl(java.lang.String name,
java.lang.String content)
Constructor for GenericMessageImpl. |
|
| Method Summary | |
|---|---|
java.lang.String |
getComponentSeparator()
Returns the componentSeparator. |
java.lang.String |
getEncodingCharacters()
|
java.lang.String |
getEscapeCharacter()
Returns the escapeCharacter. |
java.lang.String |
getFieldSeparator()
Returns the fieldSeparator. |
MSH |
getMSH()
Returns the MSH (Message Header Segment) of this message. |
java.lang.String |
getRepetitionSeparator()
Returns the repetitionSeparator. |
Segment[] |
getSegments()
Method getSegments. |
java.lang.String |
getSubcomponentSeparator()
Returns the subcomponentSeparator. |
java.lang.String |
getVersionNumber()
Method getVersionNumber. |
boolean |
isParseAllSegments()
|
void |
marshal()
Method marshal. |
void |
setParseAllSegments(boolean b)
|
protected void |
setSegments(Segment[] segments)
Sets the segments. |
java.lang.String |
toXMLString(ComponentSpec componentSpec)
Method toXMLString. |
void |
unmarshal()
Method unmarshal. |
void |
validate(ComponentSpec componentSpec)
Method validate. |
| Methods inherited from class com.stc.connector.hl7.framework.structure.component.GenericComponentImpl |
|---|
getContent, getMessage, getName, getStatus, setContent, setMessage, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.stc.connector.hl7.framework.structure.component.Component |
|---|
getContent, getMessage, getName, setContent, setName |
| Field Detail |
|---|
public static final java.lang.String version
| Constructor Detail |
|---|
public GenericMessageImpl()
throws HL7ApplicationException
HL7ApplicationException
public GenericMessageImpl(java.lang.String name,
java.lang.String content)
throws HL7ApplicationException
name - content -
HL7ApplicationException
public GenericMessageImpl(java.lang.String name,
Segment[] segments)
throws HL7ApplicationException
name - segments -
HL7ApplicationException| Method Detail |
|---|
public void marshal()
throws HL7ApplicationException
Component
marshal in interface Componentmarshal in class GenericComponentImplHL7ApplicationExceptionComponent.marshal()
public void unmarshal()
throws HL7ApplicationException
Component
unmarshal in interface Componentunmarshal in class GenericComponentImplHL7ApplicationExceptionComponent.unmarshal()public MSH getMSH()
Message
getMSH in interface MessageMessage.getMSH()public java.lang.String getComponentSeparator()
getComponentSeparator in interface Messagepublic java.lang.String getEscapeCharacter()
getEscapeCharacter in interface Messagepublic java.lang.String getFieldSeparator()
getFieldSeparator in interface Messagepublic java.lang.String getRepetitionSeparator()
getRepetitionSeparator in interface Messagepublic java.lang.String getSubcomponentSeparator()
getSubcomponentSeparator in interface Messagepublic java.lang.String getVersionNumber()
Message
getVersionNumber in interface MessageMessage.getVersionNumber()public Segment[] getSegments()
Message
getSegments in interface MessageMessage.getSegments()
protected void setSegments(Segment[] segments)
throws HL7ApplicationException
segments - The segments to set
HL7ApplicationException
public void validate(ComponentSpec componentSpec)
throws HL7ApplicationException
Component
validate in interface Componentvalidate in class GenericComponentImplHL7ApplicationExceptionComponent.validate(ComponentSpec)
public java.lang.String toXMLString(ComponentSpec componentSpec)
throws HL7ApplicationException
Component
toXMLString in interface ComponenttoXMLString in class GenericComponentImplHL7ApplicationExceptionComponent.toXMLString(com.stc.connector.hl7.framework.spec.component.ComponentSpec)public java.lang.String getEncodingCharacters()
public boolean isParseAllSegments()
public void setParseAllSegments(boolean b)
b -
|
Sun Adapter for TCP/IP HL7 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||