Class StringValueImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.ValueImpl
org.wikidata.wdtk.datamodel.implementation.StringValueImpl
- All Implemented Interfaces:
StringValue
,Value
Jackson implementation of
StringValue
.- Author:
- Fredo Erxleben, Antonin Delpeuch
-
Field Summary
Fields inherited from class org.wikidata.wdtk.datamodel.implementation.ValueImpl
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 Summary
ConstructorDescriptionStringValueImpl
(String value) Constructor for deserialization from JSON by Jackson. -
Method Summary
-
Constructor Details
-
StringValueImpl
Constructor for deserialization from JSON by Jackson.- Parameters:
value
- the string represented by this Wikibase value
-
-
Method Details
-
getValue
Returns the string. Only for use by Jackson during serialization.- Returns:
- the string value
-
hashCode
public int hashCode() -
equals
-
getString
Description copied from interface:StringValue
Get the string stored in this value.- Specified by:
getString
in interfaceStringValue
- Returns:
- string value
-
accept
Description copied from interface:Value
Accept a ValueVisitor and return its output. -
toString
-