Class SenseIdValueImpl

java.lang.Object
org.wikidata.wdtk.datamodel.implementation.ValueImpl
org.wikidata.wdtk.datamodel.implementation.SenseIdValueImpl
All Implemented Interfaces:
EntityIdValue, IriIdentifiedValue, SenseIdValue, Value

public class SenseIdValueImpl extends ValueImpl implements SenseIdValue
Jackson implementation of SenseIdValue. TODO: It is not possible to use it as statement value yet.
Author:
Thomas Pellissier Tanon
  • Method Details

    • getEntityType

      public String getEntityType()
      Description copied from interface: EntityIdValue
      Returns the type of this entity. This should be an IRI that identifies an entity type, such as EntityIdValue.ET_ITEM or EntityIdValue.ET_PROPERTY.
      Specified by:
      getEntityType in interface EntityIdValue
      Returns:
      IRI string to identify the type of the entity
    • getId

      public String getId()
      Description copied from interface: EntityIdValue
      Returns the id of this entity.
      Specified by:
      getId in interface EntityIdValue
      Returns:
      String id of this entity
    • getSiteIri

      public String getSiteIri()
      Description copied from interface: EntityIdValue
      Returns an IRI that identifies the site that this entity comes from,, e.g., "http://www.wikidata.org/entity/" for Wikidata.
      Specified by:
      getSiteIri in interface EntityIdValue
      Returns:
      the site IRI string
    • getIri

      public String getIri()
      Description copied from interface: IriIdentifiedValue
      Get the IRI of this entity.
      Specified by:
      getIri in interface IriIdentifiedValue
      Returns:
      String with the IRI
    • isPlaceholder

      public boolean isPlaceholder()
      Description copied from interface: EntityIdValue
      Checks whether this is a placeholder ID. Placeholder IDs, for example ItemIdValue.NULL, are often used when creating new entities.
      Specified by:
      isPlaceholder in interface EntityIdValue
      Returns:
      true if this is a placeholder ID, false otherwise
    • getLexemeId

      public LexemeIdValue getLexemeId()
      Description copied from interface: SenseIdValue
      Returns the id of the lexeme of which it is a form.
      Specified by:
      getLexemeId in interface SenseIdValue
      Returns:
      A lexeme id
    • accept

      public <T> T accept(ValueVisitor<T> valueVisitor)
      Description copied from interface: Value
      Accept a ValueVisitor and return its output.
      Specified by:
      accept in interface Value
      Parameters:
      valueVisitor - the ValueVisitor
      Returns:
      output of the visitor
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object