Interface MonolingualTextValue

All Superinterfaces:
Value
All Known Implementing Classes:
MonolingualTextValueImpl, TermImpl

public interface MonolingualTextValue extends Value
A monolingual text value represents a text (string) in a certain language.
Author:
Markus Kroetzsch
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the language code of this value.
    Get the text of this value.

    Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.Value

    accept
  • Method Details

    • getText

      String getText()
      Get the text of this value.
      Returns:
      a string
    • getLanguageCode

      String getLanguageCode()
      Get the language code of this value. The codes are usually based on the codes used internally in Wikibase, which in turn are the codes used in the Universal Language Selector extension. However, the data model as such does not restrict the strings that might be used here.
      Returns:
      a string that represents language