au.gov.nehta.vendorlibrary.mdm.segments
Class EVN.Builder

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.mdm.segments.EVN.Builder
Enclosing class:
EVN

public static final class EVN.Builder
extends java.lang.Object

EVN.Builder Build class used to construct and validate an EVN object.


Constructor Summary
EVN.Builder()
           
 
Method Summary
 EVN build()
          Build EVN and validate necessary fields.
 EVN.Builder recordedDateTime(java.util.Date value)
          Set the recorded date/time.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EVN.Builder

public EVN.Builder()
Method Detail

recordedDateTime

public EVN.Builder recordedDateTime(java.util.Date value)
Set the recorded date/time.

Parameters:
value - Recorded date/time (not null).
Returns:
EVN.Builder

build

public EVN build()
          throws MDMValidationException
Build EVN and validate necessary fields.

Returns:
EVN
Throws:
MDMValidationException - Thrown when validation fails.