|
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.message.acknak.AckNakMsg
public abstract class AckNakMsg
This class represents an abstract Ack/Nak message.
Field Summary | |
---|---|
static java.lang.String |
TYPE_ACK
TYPE_ACK |
static java.lang.String |
TYPE_NAK
TYPE_NAK |
static java.lang.String |
version
|
Constructor Summary | |
---|---|
AckNakMsg(AbstractMsg msg)
Constructor. |
Method Summary | |
---|---|
boolean |
equalsTo(AbstractMsg msg)
Checks whether the Ack/Nak message equals to the specified AbstractMsg. |
byte[] |
getBytes()
Returns a byte array. |
AbstractMsg |
getMessage()
Returns the message. |
java.lang.String |
getType()
Gets the Type. |
void |
setMessage(AbstractMsg message)
Sets the message. |
protected void |
setType(java.lang.String type)
Sets the type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String version
public static final java.lang.String TYPE_ACK
public static final java.lang.String TYPE_NAK
Constructor Detail |
---|
public AckNakMsg(AbstractMsg msg)
msg
- AbstractMsgMethod Detail |
---|
public java.lang.String getType()
protected void setType(java.lang.String type)
type
- The type to setpublic AbstractMsg getMessage()
public void setMessage(AbstractMsg message)
message
- The message to setpublic byte[] getBytes() throws java.io.IOException
AbstractMsg
getBytes
in interface AbstractMsg
java.io.IOException
- on errorAbstractMsg.getBytes()
public boolean equalsTo(AbstractMsg msg)
msg
- The AbstractMsg to compare.
|
Sun Adapter for TCP/IP HL7 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |