public class UnsupportedEntityIdValueImpl extends ValueImpl implements UnsupportedEntityIdValue
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_TIMEET_FORM, ET_ITEM, ET_LEXEME, ET_MEDIA_INFO, ET_PROPERTY, ET_SENSE, ET_UNSUPPORTED, SITE_LOCAL| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor)
Accept a ValueVisitor and return its output.
|
boolean |
equals(Object other) |
String |
getEntityType()
Returns the type of this entity.
|
String |
getEntityTypeJsonString()
The type of entity as represented in the JSON serialization.
|
String |
getId()
Returns the id of this entity.
|
protected org.wikidata.wdtk.datamodel.implementation.UnsupportedEntityIdValueImpl.JacksonIdValue |
getInnerValue() |
String |
getIri()
Get the IRI of this entity.
|
String |
getSiteIri()
Returns an IRI that identifies the site that this entity comes from,,
e.g., "http://www.wikidata.org/entity/" for Wikidata.
|
int |
hashCode() |
boolean |
isPlaceholder()
Checks whether this is a placeholder ID.
|
String |
toString() |
public String getEntityType()
EntityIdValueEntityIdValue.ET_ITEM or
EntityIdValue.ET_PROPERTY.getEntityType in interface EntityIdValuepublic String getId()
EntityIdValuegetId in interface EntityIdValueprotected org.wikidata.wdtk.datamodel.implementation.UnsupportedEntityIdValueImpl.JacksonIdValue getInnerValue()
public String getSiteIri()
EntityIdValuegetSiteIri in interface EntityIdValuepublic String getIri()
IriIdentifiedValuegetIri in interface IriIdentifiedValuepublic boolean isPlaceholder()
EntityIdValueItemIdValue.NULL, are often used when creating new entities.isPlaceholder in interface EntityIdValuetrue if this is a placeholder ID, false otherwisepublic <T> T accept(ValueVisitor<T> valueVisitor)
Valuepublic String getEntityTypeJsonString()
UnsupportedEntityIdValuegetEntityTypeJsonString in interface UnsupportedEntityIdValueCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage