de.tudarmstadt.ukp.jwktl.api.entry
Class WiktionaryTranslation

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.api.entry.WiktionaryTranslation
All Implemented Interfaces:
IWiktionaryTranslation

@Persistent
public class WiktionaryTranslation
extends Object
implements IWiktionaryTranslation

Default implementation of the IWiktionaryTranslation interface. See there for details.

Author:
Christian M. Meyer

Field Summary
protected  String additionalInformation
           
protected  ILanguage language
           
protected  String languageStr
           
protected  String translation
           
protected  String transliteration
           
 
Constructor Summary
WiktionaryTranslation()
          Creates a new, empty translation.
WiktionaryTranslation(ILanguage language, String translation)
          Creates a new translation for the given language and translation string.
 
Method Summary
 String getAdditionalInformation()
          Returns additional information on the translation, including usage notes, meaning-related information, and grammatical properties.
 ILanguage getLanguage()
          Returns the target language of the translation.
 String getTranslation()
          Returns the translated word form (belonging to target language).
 String getTransliteration()
          Returns a transliteration to the script of the encoding Wiktionary.
 void setAdditionalInformation(String additionalInformation)
          Assigns the given additional information to this translation.
 void setTransliteration(String transliteration)
          Assigns the given transliteration to this translation.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

language

protected transient ILanguage language

languageStr

protected String languageStr

translation

protected String translation

transliteration

protected String transliteration

additionalInformation

protected String additionalInformation
Constructor Detail

WiktionaryTranslation

public WiktionaryTranslation()
Creates a new, empty translation.


WiktionaryTranslation

public WiktionaryTranslation(ILanguage language,
                             String translation)
Creates a new translation for the given language and translation string.

Method Detail

getLanguage

public ILanguage getLanguage()
Description copied from interface: IWiktionaryTranslation
Returns the target language of the translation.

Specified by:
getLanguage in interface IWiktionaryTranslation

getTranslation

public String getTranslation()
Description copied from interface: IWiktionaryTranslation
Returns the translated word form (belonging to target language).

Specified by:
getTranslation in interface IWiktionaryTranslation

getTransliteration

public String getTransliteration()
Description copied from interface: IWiktionaryTranslation
Returns a transliteration to the script of the encoding Wiktionary. A Russian translation within the English Wiktionary could, for example, be transliterated from the Cyrillic to the Latin script. Returns null if no transliteration is specified.

Specified by:
getTransliteration in interface IWiktionaryTranslation

setTransliteration

public void setTransliteration(String transliteration)
Assigns the given transliteration to this translation.


getAdditionalInformation

public String getAdditionalInformation()
Description copied from interface: IWiktionaryTranslation
Returns additional information on the translation, including usage notes, meaning-related information, and grammatical properties.

Specified by:
getAdditionalInformation in interface IWiktionaryTranslation

setAdditionalInformation

public void setAdditionalInformation(String additionalInformation)
Assigns the given additional information to this translation.


toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.