com.retek.commons.gui.util
Class UiBusinessExceptionConverter

java.lang.Object
  extended bycom.retek.commons.gui.util.UiBusinessExceptionConverter

public class UiBusinessExceptionConverter
extends java.lang.Object

This class is a factory for converting BusinessException objects into UiBusinessException objects. This class is required to convert all the attribute names from component objects into widget names at the GUI Level.

Retek Inc. Copyright (c) 2002


Constructor Summary
UiBusinessExceptionConverter()
           
 
Method Summary
static UiBusinessException convert(BusinessException exception)
          Returns UIBusinessException for a BusinessException after converting all component names into GUI names.
static UiBusinessException convert(BusinessException exception, java.util.Map translateMap)
          Returns UIBusinessException for a BusinessException after converting all component names into GUI names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UiBusinessExceptionConverter

public UiBusinessExceptionConverter()
Method Detail

convert

public static UiBusinessException convert(BusinessException exception)
Returns UIBusinessException for a BusinessException after converting all component names into GUI names.

Parameters:
exception - A BusinessException object containing a list of problems.
Returns:
The generated business exception.

convert

public static UiBusinessException convert(BusinessException exception,
                                          java.util.Map translateMap)
Returns UIBusinessException for a BusinessException after converting all component names into GUI names. If the translation map is empty, use the problem source object identifier. Else look through the translation map and translate the message.

Parameters:
exception - A BusinessException object containing a list of problems.
Returns:
The generated business exception.


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25