com.alee.managers.language.data
Class Record

java.lang.Object
  extended by com.alee.managers.language.data.Record
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public final class Record
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Author:
Mikle Garin
See Also:
Serialized Form

Constructor Summary
Record()
           
Record(java.lang.String key)
           
Record(java.lang.String key, java.util.List<Value> values)
           
Record(java.lang.String key, java.lang.String hotkey, java.util.List<Value> values)
           
Record(java.lang.String key, java.lang.String hotkey, Value... values)
           
Record(java.lang.String key, Value... values)
           
 
Method Summary
 Value addValue(Value value)
           
 void clear()
           
 Record clone()
           
 java.lang.String getHotkey()
           
 java.lang.String getKey()
           
 java.util.List<java.lang.String> getSupportedLanguages()
           
 java.util.List<java.lang.String> getSupportedLanguages(java.util.List<java.lang.String> languages)
           
 java.lang.String getText(java.lang.String lang)
           
 java.lang.String getText(java.lang.String lang, java.lang.String state)
           
 Value getValue(java.lang.String lang)
           
 java.util.List<Value> getValues()
           
 boolean hasValue(java.lang.String lang)
           
 void removeValue(java.lang.String language)
           
 void removeValue(Value value)
           
 void setHotkey(java.lang.String hotkey)
           
 void setKey(java.lang.String key)
           
 void setValues(java.util.List<Value> values)
           
 int size()
           
 java.lang.String toString()
           
 java.lang.String toString(boolean boldKey)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Record

public Record()

Record

public Record(java.lang.String key)

Record

public Record(java.lang.String key,
              Value... values)

Record

public Record(java.lang.String key,
              java.util.List<Value> values)

Record

public Record(java.lang.String key,
              java.lang.String hotkey,
              Value... values)

Record

public Record(java.lang.String key,
              java.lang.String hotkey,
              java.util.List<Value> values)
Method Detail

getKey

public java.lang.String getKey()

setKey

public void setKey(java.lang.String key)

getHotkey

public java.lang.String getHotkey()

setHotkey

public void setHotkey(java.lang.String hotkey)

getValues

public java.util.List<Value> getValues()

setValues

public void setValues(java.util.List<Value> values)

addValue

public Value addValue(Value value)

removeValue

public void removeValue(Value value)

removeValue

public void removeValue(java.lang.String language)

clear

public void clear()

size

public int size()

getText

public java.lang.String getText(java.lang.String lang)

getText

public java.lang.String getText(java.lang.String lang,
                                java.lang.String state)

getValue

public Value getValue(java.lang.String lang)

hasValue

public boolean hasValue(java.lang.String lang)

getSupportedLanguages

public java.util.List<java.lang.String> getSupportedLanguages()

getSupportedLanguages

public java.util.List<java.lang.String> getSupportedLanguages(java.util.List<java.lang.String> languages)

clone

public Record clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(boolean boldKey)