org.marketcetera.util.log
Class LogUtils

java.lang.Object
  extended by org.marketcetera.util.log.LogUtils

public final class LogUtils
extends Object

General-purpose utilities.

Since:
0.5.0
Version:
$Id: LogUtils.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Method Summary
static String getListText(Object... list)
          Returns a textual representation of the given object list.
static String getSimpleMessage(I18NBoundMessage message)
          Returns a simplified textual representation of the parameterized message.
static String getSimpleMessage(I18NMessage message, Object... params)
          Returns a simplified textual representation of the parameterized message.
static String getSimpleMessage(I18NMessageProvider provider, I18NMessage message, Object... params)
          Returns a simplified textual representation of the given provider and parameterized message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getListText

public static String getListText(Object... list)
Returns a textual representation of the given object list. A null list is treated as a list containing a single null element.

Parameters:
list - The list.
Returns:
The textual representation.

getSimpleMessage

public static String getSimpleMessage(I18NMessageProvider provider,
                                      I18NMessage message,
                                      Object... params)
Returns a simplified textual representation of the given provider and parameterized message.

Parameters:
provider - The message provider.
message - The message.
params - The message parameters.
Returns:
The textual representation.

getSimpleMessage

public static String getSimpleMessage(I18NMessage message,
                                      Object... params)
Returns a simplified textual representation of the parameterized message.

Parameters:
message - The message.
params - The message parameters.
Returns:
The textual representation.

getSimpleMessage

public static String getSimpleMessage(I18NBoundMessage message)
Returns a simplified textual representation of the parameterized message.

Parameters:
message - The message.
Returns:
The textual representation.


Copyright © 2012. All Rights Reserved.