Package net.sf.okapi.tm.pensieve.common
Class TranslationUnitVariant
- java.lang.Object
-
- net.sf.okapi.tm.pensieve.common.TranslationUnitVariant
-
public class TranslationUnitVariant extends Object
Represents a Unit of Translation's Variant. This is used for both the source and targets- Author:
- HaslamJD
-
-
Constructor Summary
Constructors Constructor Description TranslationUnitVariant()Creates an empty TUVTranslationUnitVariant(LocaleId language, TextFragment content)Creates a TUV with the given language and content
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextFragmentgetContent()LocaleIdgetLanguage()voidsetContent(TextFragment content)voidsetLocale(LocaleId locale)
-
-
-
Constructor Detail
-
TranslationUnitVariant
public TranslationUnitVariant()
Creates an empty TUV
-
TranslationUnitVariant
public TranslationUnitVariant(LocaleId language, TextFragment content)
Creates a TUV with the given language and content- Parameters:
language- the language of the TUVcontent- the content of the TUV
-
-
Method Detail
-
getContent
public TextFragment getContent()
-
setContent
public void setContent(TextFragment content)
-
getLanguage
public LocaleId getLanguage()
-
setLocale
public void setLocale(LocaleId locale)
-
-