Class PropertyUpdateImpl
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
org.wikidata.wdtk.datamodel.implementation.LabeledDocumentUpdateImpl
org.wikidata.wdtk.datamodel.implementation.TermedDocumentUpdateImpl
org.wikidata.wdtk.datamodel.implementation.PropertyUpdateImpl
- All Implemented Interfaces:
EntityUpdate
,LabeledDocumentUpdate
,LabeledStatementDocumentUpdate
,PropertyUpdate
,StatementDocumentUpdate
,TermedDocumentUpdate
,TermedStatementDocumentUpdate
Jackson implementation of
PropertyUpdate
.-
Constructor Summary
ConstructorDescriptionPropertyUpdateImpl
(PropertyIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements) Initializes new property update. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns ID of the entity that is being updated.int
hashCode()
Methods inherited from class org.wikidata.wdtk.datamodel.implementation.TermedDocumentUpdateImpl
getAliases, getDescriptions, isEmpty
Methods inherited from class org.wikidata.wdtk.datamodel.implementation.LabeledDocumentUpdateImpl
getLabels
Methods inherited from class org.wikidata.wdtk.datamodel.implementation.StatementDocumentUpdateImpl
getStatements
Methods inherited from class org.wikidata.wdtk.datamodel.implementation.EntityUpdateImpl
getBaseRevisionId
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.EntityUpdate
getBaseRevisionId, isEmpty
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.LabeledDocumentUpdate
getLabels
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.StatementDocumentUpdate
getStatements
Methods inherited from interface org.wikidata.wdtk.datamodel.interfaces.TermedDocumentUpdate
getAliases, getDescriptions
-
Constructor Details
-
PropertyUpdateImpl
public PropertyUpdateImpl(PropertyIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements) Initializes new property update.- Parameters:
entityId
- ID of the property entity that is to be updatedrevisionId
- base property entity revision to be updated or zero if not availablelabels
- changes in entity labels ornull
for no changedescriptions
- changes in entity descriptions ornull
for no changealiases
- changes in entity aliases, possibly emptystatements
- changes in entity statements, possibly empty- Throws:
NullPointerException
- if any required parameter isnull
IllegalArgumentException
- if any parameters or their combination is invalid
-
-
Method Details
-
getEntityId
Description copied from interface:EntityUpdate
Returns ID of the entity that is being updated.- Specified by:
getEntityId
in interfaceEntityUpdate
- Specified by:
getEntityId
in interfacePropertyUpdate
- Overrides:
getEntityId
in classEntityUpdateImpl
- Returns:
- ID of the updated entity
-
equals
-
hashCode
public int hashCode()
-