Interface MonolingualTextValue
- All Superinterfaces:
Value
- All Known Implementing Classes:
MonolingualTextValueImpl
,TermImpl
A monolingual text value represents a text (string) in a certain language.
- Author:
- Markus Kroetzsch
-
Method Summary
Modifier and TypeMethodDescriptionGet the language code of this value.getText()
Get the text of this value.
-
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
-