public class ItemIdValueImpl extends NumericEntityIdValueImpl implements ItemIdValue
ItemIdValue that works with arbitrary
Wikibase instances: it requires a baseIri that identifies the site globally.ET_ITEM, ET_PROPERTY| Modifier and Type | Method and Description |
|---|---|
static ItemIdValueImpl |
create(String id,
String baseIri)
Creates a new object of this type.
|
String |
getEntityType()
Returns the type of this entity.
|
String |
getId()
Returns the id of this entity.
|
String |
toString() |
accept, equals, getIri, getSiteIri, hashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetSiteIrigetIripublic static ItemIdValueImpl create(String id, String baseIri)
id - a string of the form Qn... where n... is the string
representation of a positive integer numberbaseIri - the first part of the entity IRI of the site this belongs to,
e.g., "http://www.wikidata.org/entity/"public String getEntityType()
EntityIdValueEntityIdValue.ET_ITEM or
EntityIdValue.ET_PROPERTY.getEntityType in interface EntityIdValuepublic String getId()
EntityIdValuegetId in interface EntityIdValueCopyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage