public class JacksonValueItemId extends JacksonValue implements ItemIdValue
ItemIdValue. So far this is the only kind
of EntityIdValue that can occur as a value of properties.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_TIMEET_ITEM, ET_PROPERTY| Constructor and Description |
|---|
JacksonValueItemId()
Constructor.
|
| 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.
|
String |
getSiteIri()
Returns an IRI that identifies the site that this entity comes from,,
e.g., "http://www.wikidata.org/entity/" for Wikidata.
|
JacksonInnerEntityId |
getValue()
Returns the inner value helper object.
|
int |
hashCode() |
void |
setParentDocument(JacksonTermedDocument parentDocument)
Sets the parent document of this value to the given value.
|
void |
setValue(JacksonInnerEntityId value)
Sets the inner value helper object to the given value.
|
String |
toString() |
getType, setTypepublic JacksonValueItemId()
public JacksonInnerEntityId getValue()
public void setValue(JacksonInnerEntityId value)
value - new valuepublic String getIri()
IriIdentifiedValuegetIri in interface IriIdentifiedValuepublic String getId()
EntityIdValuegetId in interface EntityIdValuepublic String getSiteIri()
EntityIdValuegetSiteIri in interface EntityIdValuepublic String getEntityType()
EntityIdValueEntityIdValue.ET_ITEM or
EntityIdValue.ET_PROPERTY.getEntityType in interface EntityIdValuepublic void setParentDocument(JacksonTermedDocument parentDocument)
parentDocument - new valuepublic <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