public abstract class EntityIdValueImpl extends Object implements EntityIdValue
EntityIdValue that works with arbitrary
Wikibase instances: it requires a baseIri that identifies the site globally.
TODO It would be cleaner to have an object that manages the site context
instead of passing a base IRI string that is simply concatenated.
TODO For our common use case that Wikidata entities are processed, it might
be useful to have a more lightweight object that does not store this known
base IRI.ET_ITEM, ET_PROPERTY| Modifier and Type | Method and Description |
|---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor)
Accept a ValueVisitor and return its output.
|
boolean |
equals(Object obj) |
String |
getId()
Returns the id of this entity.
|
String |
getIri()
Get the IRI of this entity.
|
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() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetEntityTypepublic String getIri()
IriIdentifiedValuegetIri in interface IriIdentifiedValuepublic String getId()
EntityIdValuegetId in interface EntityIdValuepublic String getSiteIri()
EntityIdValuegetSiteIri in interface EntityIdValuepublic <T> T accept(ValueVisitor<T> valueVisitor)
ValueCopyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage