Class StatementDocumentUpdateImpl

java.lang.Object
org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
All Implemented Interfaces:
EntityUpdate, StatementDocumentUpdate
Direct Known Subclasses:
FormUpdateImpl, LabeledDocumentUpdateImpl, LexemeUpdateImpl, SenseUpdateImpl

public abstract class StatementDocumentUpdateImpl extends EntityUpdateImpl implements StatementDocumentUpdate
Jackson implementation of StatementDocumentUpdate.
See Also:
  • Constructor Details

    • StatementDocumentUpdateImpl

      protected StatementDocumentUpdateImpl(EntityIdValue entityId, long revisionId, StatementUpdate statements)
      Initializes new entity update.
      Parameters:
      entityId - ID of the entity that is to be updated
      revisionId - base entity revision to be updated or zero if not available
      statements - changes in entity statements, possibly empty
      Throws:
      NullPointerException - if any required parameter is null
      IllegalArgumentException - if any parameters or their combination is invalid
  • Method Details

    • isEmpty

      public boolean isEmpty()
      Description copied from interface: EntityUpdate
      Checks whether the update is empty. Empty update will not change the entity in any way.
      Specified by:
      isEmpty in interface EntityUpdate
      Returns:
      true if the update is empty, false otherwise
    • getStatements

      public StatementUpdate getStatements()
      Description copied from interface: StatementDocumentUpdate
      Returns statement changes included in this update.
      Specified by:
      getStatements in interface StatementDocumentUpdate
      Returns:
      statement update, possibly empty