de.smartics.exceptions.i18n.message
Class Messages

Package class diagram package Messages
java.lang.Object
  extended by de.smartics.exceptions.i18n.message.Messages
All Implemented Interfaces:
Serializable

public final class Messages
     
     
extends Object
implements Serializable

Provides the messages that are set.

See Also:
Serialized Form

Nested Class Summary
static class Messages.Builder
          The builder for message instances.
 
Method Summary
 String getMessage(MessageType type)
          Returns the message of the given type.
 boolean hasMessage(MessageType type)
          Checks if there is a message for the given type.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

hasMessage

public boolean hasMessage(MessageType type)
Checks if there is a message for the given type.

Parameters:
type - the type of message being requested.
Returns:
true if there is a non- null message, provided, false otherwise.

getMessage

public String getMessage(MessageType type)
Returns the message of the given type.

Parameters:
type - the type of message being requested.
Returns:
the message text for the given type. May be null.

toString

public String toString()
Overrides:
toString in class Object


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