|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectau.gov.nehta.vendorlibrary.mdm.segments.MSH.Builder
public static final class MSH.Builder
MSH.Builder
Build class used to construct and validate an (@link MSH} object.
| Constructor Summary | |
|---|---|
MSH.Builder()
Default constructor. |
|
| Method Summary | |
|---|---|
MSH |
build()
Build MSH and validate necessary fields. |
MSH.Builder |
messageControlId(java.lang.String value)
Set the message control ID. |
MSH.Builder |
messageDateTime(java.util.Date value)
Set the date/time message. |
MSH.Builder |
receivingApplication(HD value)
Set the receiving application. |
MSH.Builder |
receivingFacility(HD value)
Set the receiving facility. |
MSH.Builder |
sendingApplication(HD value)
Set the sending application. |
MSH.Builder |
sendingFacility(HD value)
Set the sending facility. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MSH.Builder()
| Method Detail |
|---|
public MSH.Builder messageDateTime(java.util.Date value)
value - Date/time message (not null).
MSH.Builder.public MSH.Builder messageControlId(java.lang.String value)
value - Message control ID (not null nor blank).
MSH.Builder.public MSH.Builder sendingApplication(HD value)
value - Sending application (not null).
MSH.Builder.public MSH.Builder sendingFacility(HD value)
value - Sending facility (not null).
MSH.Builder.public MSH.Builder receivingApplication(HD value)
value - Receiving application (not null).
MSH.Builder.public MSH.Builder receivingFacility(HD value)
value - Receiving facility (not null).
MSH.Builder.
public MSH build()
throws MDMValidationException
MSH and validate necessary fields.
MSH
MDMValidationException - Thrown when validation of the MSH contents fails.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||