public class HL7v2Message
extends java.lang.Object
Message
model.Constructor and Description |
---|
HL7v2Message(java.lang.String name,
java.lang.String messageType,
java.lang.String sendTime,
java.lang.String createTime,
java.lang.String data,
java.lang.String sendFacility,
@Nullable java.lang.String schematizedData,
@Nullable java.util.Map<java.lang.String,java.lang.String> labels) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(@Nullable java.lang.Object o) |
static HL7v2Message |
fromModel(Message msg)
From model
Message to hl7v2 message. |
java.lang.String |
getCreateTime()
Gets create time.
|
java.lang.String |
getData()
Gets data.
|
java.util.Map<java.lang.String,java.lang.String> |
getLabels()
Gets labels.
|
java.lang.String |
getMessageType()
Gets message type.
|
java.lang.String |
getName()
Gets name.
|
java.lang.String |
getSchematizedData()
Gets schematized data.
|
java.lang.String |
getSendFacility()
Gets send facility.
|
java.lang.String |
getSendTime()
Gets send time.
|
int |
hashCode() |
void |
setSchematizedData(java.lang.String schematizedData) |
Message |
toModel()
To model message.
|
java.lang.String |
toString() |
public HL7v2Message(java.lang.String name, java.lang.String messageType, java.lang.String sendTime, java.lang.String createTime, java.lang.String data, java.lang.String sendFacility, @Nullable java.lang.String schematizedData, @Nullable java.util.Map<java.lang.String,java.lang.String> labels)
public java.lang.String toString()
toString
in class java.lang.Object
public static HL7v2Message fromModel(Message msg)
Message
to hl7v2 message.msg
- the model msgpublic Message toModel()
public java.lang.String getName()
public java.lang.String getMessageType()
public java.lang.String getSendTime()
public java.lang.String getCreateTime()
public java.lang.String getData()
public java.lang.String getSendFacility()
public java.lang.String getSchematizedData()
public void setSchematizedData(java.lang.String schematizedData)
public java.util.Map<java.lang.String,java.lang.String> getLabels()
public boolean equals(@Nullable java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object