com.cedarsoft.exceptions
Class Messages

java.lang.Object
  extended by com.cedarsoft.exceptions.Messages

public class Messages
extends Object

Offers access to resource bundle entries

Author:
Johannes Schneider (js@cedarsoft.com)

Constructor Summary
Messages(String bundleName)
           
 
Method Summary
 String get(Enum<?> enumValue, Locale locale, Object... messageArguments)
           
 String get(Enum<?> enumValue, String category, Locale locale, Object... messageArguments)
           
 String getBundleName()
           
 String getString(String key, Locale locale, Object... messageArguments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Messages

public Messages(@Nonnull
                String bundleName)
Method Detail

getBundleName

@Nonnull
public String getBundleName()

getString

@Nonnull
public String getString(@Nonnull
                                String key,
                                @Nonnull
                                Locale locale,
                                @Nullable
                                Object... messageArguments)

get

@Nonnull
public String get(@Nonnull
                          Enum<?> enumValue,
                          @Nonnull
                          Locale locale,
                          @Nullable
                          Object... messageArguments)

get

public String get(@Nonnull
                  Enum<?> enumValue,
                  @Nullable
                  String category,
                  @Nonnull
                  Locale locale,
                  @Nullable
                  Object... messageArguments)


Copyright © 2012 cedarsoft GmbH. All Rights Reserved.