net.sf.magicproject.database.data
Class CollectionData

java.lang.Object
  extended by net.sf.magicproject.database.data.TranslatableData
      extended by net.sf.magicproject.database.data.CollectionData
Direct Known Subclasses:
TranslatedCollectionData

public class CollectionData
extends TranslatableData

Represents a collection of data which is a name associated to a table of String objects. The isTranslated() method always returns false.

Since:
0.90
Author:
Fabrice Daugan

Constructor Summary
CollectionData(PropertyConfig propertyConfig, java.lang.String... values)
          Default public constructor.
 
Method Summary
 java.lang.String getTranslatedValue(Proxy proxy)
          Returns the translated value.
 java.lang.String getValue()
          The value.
 
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

CollectionData

public CollectionData(PropertyConfig propertyConfig,
                      java.lang.String... values)
Default public constructor.

Parameters:
propertyConfig - the property configuration of this data to use
values - the values 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.

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

getValue

public java.lang.String getValue()
Description copied from class: TranslatableData
The value.

Specified by:
getValue in class TranslatableData
Returns:
the value associated to the key of this data


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