MonolingualTextValue, Valuepublic 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 | Description |
|---|---|
JacksonValueMonolingualText() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor) |
Accept a ValueVisitor and return its output.
|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getLanguageCode() |
Get the language code of this value.
|
java.lang.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.
|
java.lang.String |
toString() |
getType, setTypepublic JacksonValueMonolingualText()
public JacksonInnerMonolingualText getValue()
public void setValue(JacksonInnerMonolingualText value)
value - new valuepublic java.lang.String getText()
MonolingualTextValuegetText in interface MonolingualTextValuepublic java.lang.String getLanguageCode()
MonolingualTextValuegetLanguageCode in interface MonolingualTextValuepublic <T> T accept(ValueVisitor<T> valueVisitor)
Valuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage