public class MonolingualTextValueImpl extends ValueImpl implements MonolingualTextValue
MonolingualTextValue
. Java attributes are
named equally to the JSON fields. Deviations are due to different naming in
the implemented interfaces. The "value" in this JSON context is called
"text".
The class extends ValueImpl
which adds a type association done by
the JSON.
JSON_VALUE_TYPE_ENTITY_ID, JSON_VALUE_TYPE_GLOBE_COORDINATES, JSON_VALUE_TYPE_MONOLINGUAL_TEXT, JSON_VALUE_TYPE_QUANTITY, JSON_VALUE_TYPE_STRING, JSON_VALUE_TYPE_TIME
Constructor and Description |
---|
MonolingualTextValueImpl(String text,
String language)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor)
Accept a ValueVisitor and return its output.
|
boolean |
equals(Object obj) |
String |
getLanguageCode()
Get the language code of this value.
|
String |
getText()
Get the text of this value.
|
org.wikidata.wdtk.datamodel.implementation.MonolingualTextValueImpl.JacksonInnerMonolingualText |
getValue()
Returns the inner value helper object.
|
int |
hashCode() |
String |
toString() |
public org.wikidata.wdtk.datamodel.implementation.MonolingualTextValueImpl.JacksonInnerMonolingualText getValue()
public String getText()
MonolingualTextValue
getText
in interface MonolingualTextValue
public String getLanguageCode()
MonolingualTextValue
getLanguageCode
in interface MonolingualTextValue
public <T> T accept(ValueVisitor<T> valueVisitor)
Value
Copyright © 2014–2024 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage