public class SenseIdValueImpl extends ValueImpl implements SenseIdValue
SenseIdValue.
TODO: It is not possible to use it as statement value yet.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_TIMENULLET_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 obj) |
String |
getEntityType()
Returns the type of this entity.
|
String |
getId()
Returns the id of this entity.
|
String |
getIri()
Get the IRI of this entity.
|
LexemeIdValue |
getLexemeId()
Returns the id of the lexeme of which it is a form.
|
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 EntityIdValuepublic 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 LexemeIdValue getLexemeId()
SenseIdValuegetLexemeId in interface SenseIdValuepublic <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