Skip navigation links


com.essbase.eas.i18n
Class ValueTranslator

java.lang.Object
  extended by com.essbase.eas.i18n.ValueTranslator

Direct Known Subclasses:
DatabaseCompressionTypes, ServerStorageTypesList

public abstract class ValueTranslator
extends java.lang.Object
Version:
1.0
Author:
Hank Cox, Joe Fernandez

Field Summary
protected  java.lang.Object[][] data
           

 

Constructor Summary
protected ValueTranslator()
           

 

Method Summary
 java.lang.String getStringForValue(java.lang.Long value)
          Given a UI string, this method returns the value it represents (usually an Essbase value).
 java.lang.String[] getStringList()
          Gets a list of the available strings for the UI
 java.lang.Long getValueForString(java.lang.String value)
          Given a value (usually an Essbase value), this method returns the string that is displayed in the user interface
protected  void initialize(java.util.ResourceBundle b, java.lang.String[] keys)
          This method instantiates the object.
 int length()
          Returns the number of keys stored in this object

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Field Detail

data

protected java.lang.Object[][] data

Constructor Detail

ValueTranslator

protected ValueTranslator()

Method Detail

initialize

protected void initialize(java.util.ResourceBundle b,
                          java.lang.String[] keys)
This method instantiates the object. This method should be called by the classes derived from it.
Parameters:
r - - resource bundle to use.

length

public int length()
Returns the number of keys stored in this object

getStringForValue

public java.lang.String getStringForValue(java.lang.Long value)
Given a UI string, this method returns the value it represents (usually an Essbase value).

getValueForString

public java.lang.Long getValueForString(java.lang.String value)
Given a value (usually an Essbase value), this method returns the string that is displayed in the user interface

getStringList

public java.lang.String[] getStringList()
Gets a list of the available strings for the UI

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.