public class ItemIdValueImpl extends EntityIdValueImpl implements ItemIdValue
ItemIdValue
.JSON_ENTITY_TYPE_FORM, JSON_ENTITY_TYPE_ITEM, JSON_ENTITY_TYPE_LEXEME, JSON_ENTITY_TYPE_MEDIA_INFO, JSON_ENTITY_TYPE_PROPERTY, JSON_ENTITY_TYPE_SENSE
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
NULL
ET_FORM, ET_ITEM, ET_LEXEME, ET_MEDIA_INFO, ET_PROPERTY, ET_SENSE, ET_UNSUPPORTED, SITE_LOCAL
Constructor and Description |
---|
ItemIdValueImpl(String id,
String siteIri)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor)
Accept a ValueVisitor and return its output.
|
boolean |
equals(Object obj) |
String |
getEntityType()
Returns the type of this entity.
|
int |
hashCode() |
boolean |
isPlaceholder()
Checks whether this is a placeholder ID.
|
String |
toString() |
assertHasJsonEntityType, fromId, getId, getIri, getSiteIri, getValue, guessEntityTypeFromId
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getId, getSiteIri
getIri
public String getEntityType()
EntityIdValue
EntityIdValue.ET_ITEM
or
EntityIdValue.ET_PROPERTY
.getEntityType
in interface EntityIdValue
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
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