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_SENSEJSON_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_TIMENULLET_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, guessEntityTypeFromIdclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetId, getSiteIrigetIripublic String getEntityType()
EntityIdValueEntityIdValue.ET_ITEM or
EntityIdValue.ET_PROPERTY.getEntityType in interface EntityIdValuepublic 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)
ValueCopyright © 2014–2022 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage