com.uwyn.rife.tools
Class LocalizedString

java.lang.Object
  extended by com.uwyn.rife.tools.LocalizedString
All Implemented Interfaces:
CharSequence

public class LocalizedString
extends Object
implements CharSequence

This class makes it possible to always keep a localized string up-to-date. By providing it with a lookup key instead of the final text, it is able to always provide a text representation according to the active default localization settings.

Since:
1.0
Version:
$Revision: 3634 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Constructor Summary
LocalizedString(String key)
          Instantiates a new LocalizedString instance.
 
Method Summary
 char charAt(int index)
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalizedString

public LocalizedString(String key)
Instantiates a new LocalizedString instance.

Parameters:
key - the key that will be used to look up the localized string
Since:
1.0
Method Detail

charAt

public char charAt(int index)
Specified by:
charAt in interface CharSequence

subSequence

public CharSequence subSequence(int start,
                                int end)
Specified by:
subSequence in interface CharSequence

length

public int length()
Specified by:
length in interface CharSequence

toString

public String toString()
Specified by:
toString in interface CharSequence
Overrides:
toString in class Object


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.