net.sf.magicproject.database.data
Class TranslatedStringData

java.lang.Object
  extended by net.sf.magicproject.database.data.TranslatableData
      extended by net.sf.magicproject.database.data.StringData
          extended by net.sf.magicproject.database.data.TranslatedStringData

public class TranslatedStringData
extends StringData

Represents a simple translated data, which is a name associated to a String value. The isTranslated() method always returns true.

Since:
0.90
Author:
Fabrice Daugan

Constructor Summary
TranslatedStringData(PropertyConfig config, java.lang.String value)
          Default public constructor.
 
Method Summary
 java.lang.String getTranslatedValue(Proxy proxy)
          Returns the translated value.
 
Methods inherited from class net.sf.magicproject.database.data.StringData
getValue
 
Methods inherited from class net.sf.magicproject.database.data.TranslatableData
getPropertyName, getTranslatedPropertyName, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TranslatedStringData

public TranslatedStringData(PropertyConfig config,
                            java.lang.String value)
Default public constructor.

Parameters:
config - the property configuration of this data to use
value - the value of this data
Method Detail

getTranslatedValue

public java.lang.String getTranslatedValue(Proxy proxy)
Description copied from class: TranslatableData
Returns the translated value. The translation is done only during the first call.

Overrides:
getTranslatedValue in class StringData
Parameters:
proxy - is the proxy this data come from. Is used to translate from private-proxy to public-tbs value.
Returns:
the translated value


Copyright © 2003-2007 Magic-Project. All Rights Reserved.