org.norther.tammi.root.locale
Class LocalizedValue

java.lang.Object
  extended by org.norther.tammi.root.locale.LocalizedValue
All Implemented Interfaces:
Serializable, Cloneable

public class LocalizedValue
extends Object
implements Cloneable, Serializable

A persistent localized value.

Version:
$Id: LocalizedValue.java,v 1.15 2009/09/28 15:08:35 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Nested Class Summary
static class LocalizedValue.Id
          An inner class for a composite id.
 
Field Summary
static String NULL
          The null string in dictionaries.
 
Constructor Summary
LocalizedValue()
          Constructs a new value.
LocalizedValue(String value)
          Constructs a new value with a default value.
 
Method Summary
 Object clone()
           
 LocalizedValue.Id getId()
          Gets the composite id.
 Object getLocaleId()
          Gets the locale id.
 LocalizedName getLocalizedName()
          Gets the current localized name.
 Object getNameId()
          Gets the name id.
 String getValue()
          Gets the current value.
 void setId(LocalizedValue.Id id)
          Sets the composite id.
 void setLocaleId(Object id)
          Sets the locale id.
 void setLocalizedName(LocalizedName name)
          Sets the current localized name.
 void setNameId(Object id)
          Sets the name id.
 void setValue(String value)
          Sets the current value.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL

public static final String NULL
The null string in dictionaries.

See Also:
Constant Field Values
Constructor Detail

LocalizedValue

public LocalizedValue()
Constructs a new value.


LocalizedValue

public LocalizedValue(String value)
Constructs a new value with a default value.

Parameters:
value - the default value.
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

getId

public LocalizedValue.Id getId()
Gets the composite id.

Returns:
the composite id.

setId

public void setId(LocalizedValue.Id id)
Sets the composite id.

Parameters:
id - the composite id.

getNameId

public Object getNameId()
Gets the name id.

Returns:
the name id.

setNameId

public void setNameId(Object id)
Sets the name id.

Parameters:
id - the name id.

getLocaleId

public Object getLocaleId()
Gets the locale id.

Returns:
the locale id.

setLocaleId

public void setLocaleId(Object id)
Sets the locale id.

Parameters:
id - the locale id.

getValue

public String getValue()
Gets the current value.

Returns:
the value.

setValue

public void setValue(String value)
Sets the current value.

Parameters:
value - the value.

getLocalizedName

public LocalizedName getLocalizedName()
Gets the current localized name.

Returns:
the localized name.

setLocalizedName

public void setLocalizedName(LocalizedName name)
Sets the current localized name.

Parameters:
name - the name.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004 The Norther Organization. All rights reserved.