Class FormIdValueImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.ValueImpl
org.wikidata.wdtk.datamodel.implementation.FormIdValueImpl
- All Implemented Interfaces:
EntityIdValue,FormIdValue,IriIdentifiedValue,Value
Jackson implementation of
FormIdValue.
TODO: It is not possible to use it as statement value yet.- Author:
- Thomas Pellissier Tanon
-
Field Summary
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_TIMEFields 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_LOCALFields inherited from interface org.wikidata.wdtk.datamodel.interfaces.FormIdValue
NULL -
Method Summary
Modifier and TypeMethodDescription<T> Taccept(ValueVisitor<T> valueVisitor) Accept a ValueVisitor and return its output.booleanReturns the type of this entity.getId()Returns the id of this entity.getIri()Get the IRI of this entity.Returns the id of the lexeme of which it is a form.Returns an IRI that identifies the site that this entity comes from,, e.g., "http://www.wikidata.org/entity/" for Wikidata.inthashCode()booleanChecks whether this is a placeholder ID.toString()
-
Method Details
-
getEntityType
Description copied from interface:EntityIdValueReturns the type of this entity. This should be an IRI that identifies an entity type, such asEntityIdValue.ET_ITEMorEntityIdValue.ET_PROPERTY.- Specified by:
getEntityTypein interfaceEntityIdValue- Returns:
- IRI string to identify the type of the entity
-
getId
Description copied from interface:EntityIdValueReturns the id of this entity.- Specified by:
getIdin interfaceEntityIdValue- Returns:
- String id of this entity
-
getSiteIri
Description copied from interface:EntityIdValueReturns an IRI that identifies the site that this entity comes from,, e.g., "http://www.wikidata.org/entity/" for Wikidata.- Specified by:
getSiteIriin interfaceEntityIdValue- Returns:
- the site IRI string
-
getIri
Description copied from interface:IriIdentifiedValueGet the IRI of this entity.- Specified by:
getIriin interfaceIriIdentifiedValue- Returns:
- String with the IRI
-
isPlaceholder
public boolean isPlaceholder()Description copied from interface:EntityIdValueChecks whether this is a placeholder ID. Placeholder IDs, for exampleItemIdValue.NULL, are often used when creating new entities.- Specified by:
isPlaceholderin interfaceEntityIdValue- Returns:
trueif this is a placeholder ID,falseotherwise
-
getLexemeId
Description copied from interface:FormIdValueReturns the id of the lexeme of which it is a form.- Specified by:
getLexemeIdin interfaceFormIdValue- Returns:
- A lexeme id
-
accept
Description copied from interface:ValueAccept a ValueVisitor and return its output. -
hashCode
public int hashCode() -
equals
-
toString
-