public class JacksonValueMonolingualText extends JacksonValue 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 JacksonValue 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 |
|---|
JacksonValueMonolingualText()
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.
|
JacksonInnerMonolingualText |
getValue()
Returns the inner value helper object.
|
int |
hashCode() |
void |
setValue(JacksonInnerMonolingualText value)
Sets the inner value helper object to the given value.
|
String |
toString() |
getType, setTypepublic JacksonValueMonolingualText()
public JacksonInnerMonolingualText getValue()
public void setValue(JacksonInnerMonolingualText value)
value - new valuepublic String getText()
MonolingualTextValuegetText in interface MonolingualTextValuepublic String getLanguageCode()
MonolingualTextValuegetLanguageCode in interface MonolingualTextValuepublic <T> T accept(ValueVisitor<T> valueVisitor)
ValueCopyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage