Class PropertyIdValueImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.ValueImpl
org.wikidata.wdtk.datamodel.implementation.EntityIdValueImpl
org.wikidata.wdtk.datamodel.implementation.PropertyIdValueImpl
- All Implemented Interfaces:
EntityIdValue
,IriIdentifiedValue
,PropertyIdValue
,Value
Jackson implementation of
PropertyIdValue
.- Author:
- Markus Kroetzsch
-
Field Summary
Fields inherited from class org.wikidata.wdtk.datamodel.implementation.EntityIdValueImpl
JSON_ENTITY_TYPE_FORM, JSON_ENTITY_TYPE_ITEM, JSON_ENTITY_TYPE_LEXEME, JSON_ENTITY_TYPE_MEDIA_INFO, JSON_ENTITY_TYPE_PROPERTY, JSON_ENTITY_TYPE_SENSE
Fields inherited from class org.wikidata.wdtk.datamodel.implementation.ValueImpl
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
Fields inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityIdValue
ET_FORM, ET_ITEM, ET_LEXEME, ET_MEDIA_INFO, ET_PROPERTY, ET_SENSE, ET_UNSUPPORTED, SITE_LOCAL
Fields inherited from interface org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue
NULL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(ValueVisitor<T> valueVisitor) Accept a ValueVisitor and return its output.boolean
Returns the type of this entity.int
hashCode()
boolean
Checks whether this is a placeholder ID.toString()
Methods inherited from class org.wikidata.wdtk.datamodel.implementation.EntityIdValueImpl
assertHasJsonEntityType, fromId, getId, getIri, getSiteIri, getValue, guessEntityTypeFromId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityIdValue
getId, getSiteIri
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.IriIdentifiedValue
getIri
-
Constructor Details
-
PropertyIdValueImpl
Constructor.- Parameters:
id
- the identifier of the entity, such as "P42"siteIri
- the siteIRI that this value refers to
-
-
Method Details
-
getEntityType
Description copied from interface:EntityIdValue
Returns the type of this entity. This should be an IRI that identifies an entity type, such asEntityIdValue.ET_ITEM
orEntityIdValue.ET_PROPERTY
.- Specified by:
getEntityType
in interfaceEntityIdValue
- Returns:
- IRI string to identify the type of the entity
-
isPlaceholder
public boolean isPlaceholder()Description copied from interface:EntityIdValue
Checks whether this is a placeholder ID. Placeholder IDs, for exampleItemIdValue.NULL
, are often used when creating new entities.- Specified by:
isPlaceholder
in interfaceEntityIdValue
- Returns:
true
if this is a placeholder ID,false
otherwise
-
accept
Description copied from interface:Value
Accept a ValueVisitor and return its output. -
hashCode
public int hashCode() -
equals
-
toString
-