org.eclipse.birt.data.oda.util
Class ResourceManager

java.lang.Object
  extended byorg.eclipse.birt.data.oda.util.ResourceManager
Direct Known Subclasses:
OdaResources

Deprecated. As of BIRT 2.0, replaced by org.eclipse.datatools.connectivity.oda.util.ResourceManager .
The BIRT ODA run-time framework has been migrated to the Eclipse Data Tools Platform (DTP) project.

public class ResourceManager
extends java.lang.Object

A base class that manages retrieving localized messages from int-based message keys. Subclasses should override init() to pass a localized message array via setResourceTable().


Constructor Summary
protected ResourceManager()
          Deprecated.  
 
Method Summary
 java.lang.Object get(int iKey)
          Deprecated.  
static java.lang.String getCurrencyFormat(int iFractionDigits)
          Deprecated.  
static java.lang.String getMediumDateFormat()
          Deprecated.  
static java.lang.String getNumberFormat(int iFractionDigits)
          Deprecated.  
 java.lang.String[] getResourceKeyNames()
          Deprecated.  
 java.lang.String getString(int iKey)
          Deprecated.  
protected  void init()
          Deprecated.  
static ResourceManager loadResources(java.lang.String sFQClass, java.util.Locale l)
          Deprecated.  
protected  void setResourceTable(java.lang.Object[] oaValues)
          Deprecated. The keys and values are internally created using a utility.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceManager

protected ResourceManager()
Deprecated. 
Method Detail

init

protected void init()
Deprecated. 

setResourceTable

protected final void setResourceTable(java.lang.Object[] oaValues)
Deprecated. 
The keys and values are internally created using a utility. Hence, they must always match. No possibility of an exception out here. Returns the offset from which the new set of resources are appended in case htResources becomes a static in the future.


get

public final java.lang.Object get(int iKey)
                           throws org.eclipse.birt.data.oda.util.ValueNotFoundException
Deprecated. 
Throws:
org.eclipse.birt.data.oda.util.ValueNotFoundException

getString

public final java.lang.String getString(int iKey)
                                 throws org.eclipse.birt.data.oda.util.ValueNotFoundException
Deprecated. 
Throws:
org.eclipse.birt.data.oda.util.ValueNotFoundException

getResourceKeyNames

public java.lang.String[] getResourceKeyNames()
Deprecated. 

loadResources

public static final ResourceManager loadResources(java.lang.String sFQClass,
                                                  java.util.Locale l)
Deprecated. 

getMediumDateFormat

public static final java.lang.String getMediumDateFormat()
Deprecated. 

getNumberFormat

public static final java.lang.String getNumberFormat(int iFractionDigits)
Deprecated. 

getCurrencyFormat

public static final java.lang.String getCurrencyFormat(int iFractionDigits)
Deprecated. 


Copyright © 2005 Actuate Corp. All rights reserved.