net.sf.doolin.util
Class I18NCode

java.lang.Object
  extended by net.sf.doolin.util.I18NString
      extended by net.sf.doolin.util.I18NCode
All Implemented Interfaces:
Serializable

public class I18NCode
extends I18NString
implements Serializable

I18NString that is associated with a code.

Author:
Damien Coraboeuf
See Also:
Serialized Form

Constructor Summary
I18NCode()
          Constructor.
I18NCode(String code)
          Constructor.
I18NCode(String code, Locale locale, String value)
          Constructor.
I18NCode(String code, String value)
          Constructor.
I18NCode(String code, String defaultValue, Locale locale, String value)
          Constructor.
 
Method Summary
 String getCode()
           
 void setCode(String code)
           
 
Methods inherited from class net.sf.doolin.util.I18NString
equals, format, getDefaultValue, getKeys, getLocaleValue, getValue, getValue, hashCode, parse, setDefaultValue, setValue, setValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

I18NCode

public I18NCode()
Constructor. The resulting object has no code, no default value and no localized value

See Also:
I18NString.I18NString()

I18NCode

public I18NCode(String code)
Constructor. The resulting object has a code but no default value or localized value.

Parameters:
code - Associated code
See Also:
I18NString.I18NString()

I18NCode

public I18NCode(String code,
                Locale locale,
                String value)
Constructor. The resulting object has a code, a localized value but no default value.

Parameters:
code - Associated code
locale - Locale associated to the value
value - Value to set with the given locale
See Also:
I18NString.I18NString(Locale, String)

I18NCode

public I18NCode(String code,
                String value)
Constructor. The resulting object has a code, a default value but no localized value.

Parameters:
code - Associated code
value - Default value
See Also:
I18NString.I18NString(String)

I18NCode

public I18NCode(String code,
                String defaultValue,
                Locale locale,
                String value)
Constructor. The resulting object has a code, a localized value and a default value.

Parameters:
code - Associated code
defaultValue - Default value
locale - Locale associated to the value
value - Value to set with the given locale
See Also:
I18NString.I18NString(String, Locale, String)
Method Detail

getCode

public String getCode()
Returns:
Returns the code.

setCode

public void setCode(String code)
Parameters:
code - The code to set.


Copyright © 2011. All Rights Reserved.