com.alee.managers.language.data
Class Dictionary

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

public final class Dictionary
extends java.lang.Object
implements java.io.Serializable

Author:
Mikle Garin
See Also:
Serialized Form

Constructor Summary
Dictionary()
           
Dictionary(java.lang.String prefix)
           
Dictionary(java.lang.String prefix, java.lang.String name)
           
Dictionary(java.lang.String prefix, java.lang.String name, java.lang.String author)
           
Dictionary(java.lang.String prefix, java.lang.String name, java.lang.String author, java.lang.String creationDate)
           
Dictionary(java.lang.String prefix, java.lang.String name, java.lang.String author, java.lang.String creationDate, java.lang.String notes)
           
 
Method Summary
 void addLanguageInfo(LanguageInfo info)
           
 Record addRecord(Record record)
           
 Record addRecord(java.lang.String key, java.util.List<Value> values)
           
 Record addRecord(java.lang.String key, java.lang.String language, java.lang.Character mnemonic, java.lang.String text)
           
 Record addRecord(java.lang.String key, java.lang.String language, java.lang.String text)
           
 Record addRecord(java.lang.String key, Value... values)
           
 void addSubdictionary(Dictionary dictionary)
           
 void clear()
           
 java.lang.String getAuthor()
           
 java.lang.String getCreationDate()
           
 java.lang.String getId()
           
 LanguageInfo getLanguageInfo(java.lang.String language)
           
 java.util.List<LanguageInfo> getLanguageInfos()
           
 java.lang.String getName()
           
 java.lang.String getNotes()
           
 java.lang.String getPrefix()
           
 java.util.List<Record> getRecords()
           
 java.util.List<Dictionary> getSubdictionaries()
           
 java.util.List<java.lang.String> getSupportedLanguages()
           
 java.util.List<java.lang.String> getSupportedLanguages(java.util.List<java.lang.String> languages)
           
 void removeLanguage(java.lang.String language)
           
 void removeRecord(Record record)
           
 void removeRecord(java.lang.String key)
           
 void removeSubdictionary(Dictionary dictionary)
           
 void setAuthor(java.lang.String author)
           
 void setCreationDate(java.lang.String creationDate)
           
 void setId()
           
 void setId(java.lang.String id)
           
 void setLanguageInfos(java.util.List<LanguageInfo> languageInfos)
           
 void setName(java.lang.String name)
           
 void setNotes(java.lang.String notes)
           
 void setPrefix(java.lang.String prefix)
           
 void setRecords(java.util.List<Record> records)
           
 void setSubdictionaries(java.util.List<Dictionary> subdictionaries)
           
 int size()
           
 int subdictionaries()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Dictionary

public Dictionary()

Dictionary

public Dictionary(java.lang.String prefix)

Dictionary

public Dictionary(java.lang.String prefix,
                  java.lang.String name)

Dictionary

public Dictionary(java.lang.String prefix,
                  java.lang.String name,
                  java.lang.String author)

Dictionary

public Dictionary(java.lang.String prefix,
                  java.lang.String name,
                  java.lang.String author,
                  java.lang.String creationDate)

Dictionary

public Dictionary(java.lang.String prefix,
                  java.lang.String name,
                  java.lang.String author,
                  java.lang.String creationDate,
                  java.lang.String notes)
Method Detail

getId

public java.lang.String getId()

setId

public void setId()

setId

public void setId(java.lang.String id)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getPrefix

public java.lang.String getPrefix()

setPrefix

public void setPrefix(java.lang.String prefix)

getAuthor

public java.lang.String getAuthor()

setAuthor

public void setAuthor(java.lang.String author)

getCreationDate

public java.lang.String getCreationDate()

setCreationDate

public void setCreationDate(java.lang.String creationDate)

getNotes

public java.lang.String getNotes()

setNotes

public void setNotes(java.lang.String notes)

getRecords

public java.util.List<Record> getRecords()

setRecords

public void setRecords(java.util.List<Record> records)

getSubdictionaries

public java.util.List<Dictionary> getSubdictionaries()

setSubdictionaries

public void setSubdictionaries(java.util.List<Dictionary> subdictionaries)

getLanguageInfos

public java.util.List<LanguageInfo> getLanguageInfos()

setLanguageInfos

public void setLanguageInfos(java.util.List<LanguageInfo> languageInfos)

getLanguageInfo

public LanguageInfo getLanguageInfo(java.lang.String language)

addLanguageInfo

public void addLanguageInfo(LanguageInfo info)

addRecord

public Record addRecord(java.lang.String key,
                        java.lang.String language,
                        java.lang.String text)

addRecord

public Record addRecord(java.lang.String key,
                        java.lang.String language,
                        java.lang.Character mnemonic,
                        java.lang.String text)

addRecord

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

addRecord

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

addRecord

public Record addRecord(Record record)

removeRecord

public void removeRecord(Record record)

removeRecord

public void removeRecord(java.lang.String key)

removeLanguage

public void removeLanguage(java.lang.String language)

clear

public void clear()

size

public int size()

addSubdictionary

public void addSubdictionary(Dictionary dictionary)

removeSubdictionary

public void removeSubdictionary(Dictionary dictionary)

subdictionaries

public int subdictionaries()

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)

toString

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