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_TIME
ET_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()
EntityIdValue
EntityIdValue.ET_ITEM
or
EntityIdValue.ET_PROPERTY
.getEntityType
in interface EntityIdValue
public String getId()
EntityIdValue
getId
in interface EntityIdValue
protected org.wikidata.wdtk.datamodel.implementation.UnsupportedEntityIdValueImpl.JacksonIdValue getInnerValue()
public String getSiteIri()
EntityIdValue
getSiteIri
in interface EntityIdValue
public String getIri()
IriIdentifiedValue
getIri
in interface IriIdentifiedValue
public boolean isPlaceholder()
EntityIdValue
ItemIdValue.NULL
, are often used when creating new entities.isPlaceholder
in interface EntityIdValue
true
if this is a placeholder ID, false
otherwisepublic <T> T accept(ValueVisitor<T> valueVisitor)
Value
public String getEntityTypeJsonString()
UnsupportedEntityIdValue
getEntityTypeJsonString
in interface UnsupportedEntityIdValue
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