EntityIdValue, IriIdentifiedValue, ItemIdValue, Valuepublic class ItemIdValueImpl extends java.lang.Object implements ItemIdValue
ItemIdValue that works with arbitrary
Wikibase instances: it requires a baseIri that identifies the site globally.ET_ITEM, ET_PROPERTY, SITE_LOCALNULL| Modifier and Type | Method | Description |
|---|---|---|
<T> T |
accept(ValueVisitor<T> valueVisitor) |
Accept a ValueVisitor and return its output.
|
static ItemIdValueImpl |
create(java.lang.String id,
java.lang.String baseIri) |
Deprecated.
|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getEntityType() |
Returns the type of this entity.
|
java.lang.String |
getId() |
Returns the id of this entity.
|
java.lang.String |
getIri() |
Get the IRI of this entity.
|
java.lang.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() |
|
java.lang.String |
toString() |
@Deprecated public static ItemIdValueImpl create(java.lang.String id, java.lang.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 java.lang.String getEntityType()
EntityIdValueEntityIdValue.ET_ITEM or
EntityIdValue.ET_PROPERTY.getEntityType in interface EntityIdValuepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getId()
EntityIdValuegetId in interface EntityIdValuepublic java.lang.String getIri()
IriIdentifiedValuegetIri in interface IriIdentifiedValuepublic java.lang.String getSiteIri()
EntityIdValuegetSiteIri in interface EntityIdValuepublic <T> T accept(ValueVisitor<T> valueVisitor)
Valuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage