public class FormIdValueImpl extends ValueImpl implements FormIdValue
FormIdValue
.
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_TIME
NULL
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 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()
EntityIdValue
EntityIdValue.ET_ITEM
or
EntityIdValue.ET_PROPERTY
.getEntityType
in interface EntityIdValue
public String getId()
EntityIdValue
getId
in interface EntityIdValue
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 LexemeIdValue getLexemeId()
FormIdValue
getLexemeId
in interface FormIdValue
public <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