public class ToString
extends java.lang.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 | Description |
|---|---|
ToString() |
| Modifier and Type | Method | Description |
|---|---|---|
protected static java.lang.String |
getCalendarString(java.lang.String calendarModel) |
Returns a human-readable string representation of a reference to a
calendar model that is used for a time value.
|
protected static java.lang.String |
getGlobeString(java.lang.String globeIri) |
Returns a human-readable string representation of a reference to a globe
on which coordinates may be present.
|
protected static java.lang.String |
getTimePrecisionString(byte precision) |
Returns a human-readable string representation of a reference to a
precision that is used for a time value.
|
static java.lang.String |
toString(Claim o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(DatatypeIdValue o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(GlobeCoordinatesValue o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(ItemDocument o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(ItemIdValue o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(MonolingualTextValue o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(NoValueSnak o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(PropertyDocument o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(PropertyIdValue o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(QuantityValue o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(Reference o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(SiteLink o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(SnakGroup o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(SomeValueSnak o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(Statement o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(StatementGroup o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(StringValue o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(TimeValue o) |
Returns a human-readable string representation of the given object.
|
static java.lang.String |
toString(ValueSnak o) |
Returns a human-readable string representation of the given object.
|
protected static java.lang.String |
toStringForStatementDocument(StatementDocument o) |
|
protected static java.lang.String |
toStringForTermedDocument(TermedDocument o) |
Returns a human-readable string representation of the given
TermedDocument. |
public static java.lang.String toString(ItemIdValue o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(PropertyIdValue o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(DatatypeIdValue o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(TimeValue o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(GlobeCoordinatesValue o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(StringValue o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(MonolingualTextValue o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(QuantityValue o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(ValueSnak o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(SomeValueSnak o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(NoValueSnak o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(SnakGroup o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(Claim o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(Reference o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(Statement o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(StatementGroup o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(SiteLink o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(PropertyDocument o)
o - the object to represent as stringObject.toString()public static java.lang.String toString(ItemDocument o)
o - the object to represent as stringObject.toString()protected static java.lang.String toStringForStatementDocument(StatementDocument o)
protected static java.lang.String toStringForTermedDocument(TermedDocument o)
TermedDocument.o - the object to represent as stringObject.toString()protected static java.lang.String getGlobeString(java.lang.String globeIri)
globeIri - the globe item's IRIprotected static java.lang.String getCalendarString(java.lang.String calendarModel)
calendarModel - the calendar model item's IRIprotected static java.lang.String getTimePrecisionString(byte precision)
precision - the numeric precisionCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage