de.smartics.exceptions.i18n.message
Class Messages.Builder

Package class diagram package Messages.Builder
java.lang.Object
  extended by de.smartics.exceptions.i18n.message.Messages.Builder
Enclosing class:
Messages

public static final class Messages.Builder
     
     
extends Object

The builder for message instances.


Constructor Summary
Messages.Builder()
           
 
Method Summary
 Messages build()
          Creates the messages instance.
 Messages.Builder put(MessageType type, String message)
          Adds the given message as the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messages.Builder

public Messages.Builder()
Method Detail

put

public Messages.Builder put(MessageType type,
                            String message)
Adds the given message as the given type.

Parameters:
type - the type of message.
message - the message to add.
Returns:
a reference to the builder.

build

public Messages build()
Creates the messages instance.

Returns:
the created instance.


Copyright © 2007-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.