au.gov.nehta.vendorlibrary.mdm.datatypes
Class HD.Builder

java.lang.Object
  extended by au.gov.nehta.vendorlibrary.mdm.datatypes.HD.Builder
Enclosing class:
HD

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

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


Constructor Summary
HD.Builder()
          Default constructor.
 
Method Summary
 HD build()
          Build HD and validate necessary fields.
 HD.Builder identifier(java.lang.String value)
          Set the universal identifier.
 HD.Builder identifierType(java.lang.String value)
          Set the universal identifier type.
 HD.Builder namespace(java.lang.String value)
          Set the namespace.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HD.Builder

public HD.Builder()
Default constructor.

Method Detail

namespace

public HD.Builder namespace(java.lang.String value)
Set the namespace.

Parameters:
value - Namespace (not null).
Returns:
HD.Builder

identifier

public HD.Builder identifier(java.lang.String value)
Set the universal identifier.

Parameters:
value - Universal identifier (not null).
Returns:
HD.Builder

identifierType

public HD.Builder identifierType(java.lang.String value)
Set the universal identifier type.

Parameters:
value - Universal identifier type (not null).
Returns:
HD.Builder

build

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

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