com.unitesk.atp.text.localize
Interface StringManager

All Known Implementing Classes:
ConstantStringManager, MessageStringManager, PatternStringManager

public interface StringManager

The manager of localized strings. It maintains associations between objects and bundles of named localized strings.

Version:
$Id: StringManager.java,v 1.2 2004/10/11 15:00:43 all-x Exp $
Author:
Alexey Demakov

Method Summary
 String getString(Class cls, String name)
          Get localized string for the specified class.
 String getString(Class cls, String name, Object obj)
          Get localized string for the specified class and customize it for the specified object.
 String getString(String name, Object obj)
          Get localized string for the specified object.
 

Method Detail

getString

String getString(String name,
                 Object obj)
Get localized string for the specified object. getString( name, obj ) call is equivalent to getString( obj.getClass(), name, obj ).

Parameters:
obj - The specified object.
name - The name of localized string for this object.
Returns:
Localized string or null if it is not found.

getString

String getString(Class cls,
                 String name)
Get localized string for the specified class. getString( cls, name ) call is equivalent to getString( cls, name, null ).

Parameters:
cls - The specified class.
name - The name of localized string for the specified class.
Returns:
Localized string or null if it is not found.

getString

String getString(Class cls,
                 String name,
                 Object obj)
Get localized string for the specified class and customize it for the specified object.

Parameters:
cls - The specified class.
obj - The specified object.
name - The name of localized string for the specified class.
Returns:
Localized string or null if it is not found.


Copyright © 2001-2006 ISP RAS, RedVerst Group. All Rights Reserved.