public class ToString extends Object
The methods here are only meant for human consumption. Generic methods for
serializing certain data values in well-defined string formats are found in
DataFormatter
instead.
Constructor and Description |
---|
ToString() |
Modifier and Type | Method and Description |
---|---|
protected static String |
getCalendarString(String calendarModel)
Returns a human-readable string representation of a reference to a
calendar model that is used for a time value.
|
protected static String |
getGlobeString(String globeIri)
Returns a human-readable string representation of a reference to a globe
on which coordinates may be present.
|
protected static String |
getTimePrecisionString(byte precision)
Returns a human-readable string representation of a reference to a
precision that is used for a time value.
|
static String |
toString(Claim o)
Returns a human-readable string representation of the given object.
|
static String |
toString(DatatypeIdValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(EntityRedirectDocument o)
Returns a human-readable string representation of the given object.
|
static String |
toString(FormDocument o)
Returns a human-readable string representation of the given object.
|
static String |
toString(FormIdValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(GlobeCoordinatesValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(ItemDocument o)
Returns a human-readable string representation of the given object.
|
static String |
toString(ItemIdValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(LexemeDocument o)
Returns a human-readable string representation of the given object.
|
static String |
toString(LexemeIdValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(MediaInfoDocument o)
Returns a human-readable string representation of the given object.
|
static String |
toString(MediaInfoIdValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(MonolingualTextValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(NoValueSnak o)
Returns a human-readable string representation of the given object.
|
static String |
toString(PropertyDocument o)
Returns a human-readable string representation of the given object.
|
static String |
toString(PropertyIdValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(QuantityValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(Reference o)
Returns a human-readable string representation of the given object.
|
static String |
toString(SenseDocument o)
Returns a human-readable string representation of the given object.
|
static String |
toString(SenseIdValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(SiteLink o)
Returns a human-readable string representation of the given object.
|
static String |
toString(SnakGroup o)
Returns a human-readable string representation of the given object.
|
static String |
toString(SomeValueSnak o)
Returns a human-readable string representation of the given object.
|
static String |
toString(Statement o)
Returns a human-readable string representation of the given object.
|
static String |
toString(StatementGroup o)
Returns a human-readable string representation of the given object.
|
static String |
toString(StringValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(TimeValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(UnsupportedEntityIdValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(UnsupportedValue o)
Returns a human-readable string representation of the given object.
|
static String |
toString(ValueSnak o)
Returns a human-readable string representation of the given object.
|
protected static String |
toStringForStatementDocument(StatementDocument o) |
protected static String |
toStringForTermedDocument(TermedDocument o)
Returns a human-readable string representation of the given
TermedDocument . |
public static String toString(ItemIdValue o)
o
- the object to represent as stringObject.toString()
public static String toString(PropertyIdValue o)
o
- the object to represent as stringObject.toString()
public static String toString(LexemeIdValue o)
o
- the object to represent as stringObject.toString()
public static String toString(FormIdValue o)
o
- the object to represent as stringObject.toString()
public static String toString(SenseIdValue o)
o
- the object to represent as stringObject.toString()
public static String toString(MediaInfoIdValue o)
o
- the object to represent as stringObject.toString()
public static String toString(DatatypeIdValue o)
o
- the object to represent as stringObject.toString()
public static String toString(TimeValue o)
o
- the object to represent as stringObject.toString()
public static String toString(GlobeCoordinatesValue o)
o
- the object to represent as stringObject.toString()
public static String toString(StringValue o)
o
- the object to represent as stringObject.toString()
public static String toString(MonolingualTextValue o)
o
- the object to represent as stringObject.toString()
public static String toString(QuantityValue o)
o
- the object to represent as stringObject.toString()
public static String toString(UnsupportedValue o)
o
- the object to represent as stringObject.toString()
public static String toString(UnsupportedEntityIdValue o)
o
- the object to represent as stringObject.toString()
public static String toString(ValueSnak o)
o
- the object to represent as stringObject.toString()
public static String toString(SomeValueSnak o)
o
- the object to represent as stringObject.toString()
public static String toString(NoValueSnak o)
o
- the object to represent as stringObject.toString()
public static String toString(SnakGroup o)
o
- the object to represent as stringObject.toString()
public static String toString(Claim o)
o
- the object to represent as stringObject.toString()
public static String toString(Reference o)
o
- the object to represent as stringObject.toString()
public static String toString(Statement o)
o
- the object to represent as stringObject.toString()
public static String toString(StatementGroup o)
o
- the object to represent as stringObject.toString()
public static String toString(SiteLink o)
o
- the object to represent as stringObject.toString()
public static String toString(PropertyDocument o)
o
- the object to represent as stringObject.toString()
public static String toString(ItemDocument o)
o
- the object to represent as stringObject.toString()
public static String toString(LexemeDocument o)
o
- the object to represent as stringObject.toString()
public static String toString(FormDocument o)
o
- the object to represent as stringObject.toString()
public static String toString(SenseDocument o)
o
- the object to represent as stringObject.toString()
public static String toString(MediaInfoDocument o)
o
- the object to represent as stringObject.toString()
protected static String toStringForStatementDocument(StatementDocument o)
protected static String toStringForTermedDocument(TermedDocument o)
TermedDocument
.o
- the object to represent as stringObject.toString()
protected static String getGlobeString(String globeIri)
globeIri
- the globe item's IRIprotected static String getCalendarString(String calendarModel)
calendarModel
- the calendar model item's IRIprotected static String getTimePrecisionString(byte precision)
precision
- the numeric precisionpublic static String toString(EntityRedirectDocument o)
o
- the object to represent as stringObject.toString()
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