public class StringValueImpl extends ValueImpl implements StringValue
StringValue
.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 |
---|
StringValueImpl(String value)
Constructor for deserialization from JSON by Jackson.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor)
Accept a ValueVisitor and return its output.
|
boolean |
equals(Object obj) |
String |
getString()
Get the string stored in this value.
|
String |
getValue()
Returns the string.
|
int |
hashCode() |
String |
toString() |
public StringValueImpl(String value)
value
- the string represented by this Wikibase valuepublic String getValue()
public String getString()
StringValue
getString
in interface StringValue
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