EntityDocument, PropertyDocument, StatementDocument, TermedDocumentpublic class JacksonPropertyDocument extends JacksonTermedStatementDocument implements PropertyDocument
PropertyDocument. Like all Jackson objects,
it is not technically immutable, but it is strongly recommended to treat it
as such in all contexts: the setters are for Jackson; never call them in your
code.aliases, descriptions, entityId, JSON_TYPE_ITEM, JSON_TYPE_PROPERTY, labels, revisionId, siteIri| Constructor | Description |
|---|---|
JacksonPropertyDocument() |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object obj) |
|
DatatypeIdValue |
getDatatype() |
Get the datatype id of the datatype defined for this property.
|
EntityIdValue |
getEntityId() |
Returns the ID of the entity that the data refers to
|
java.lang.String |
getJsonDatatype() |
Returns the JSON string version of the property's datatype.
|
PropertyIdValue |
getPropertyId() |
Return the ID of the property that the data refers to.
|
int |
hashCode() |
|
void |
setJsonDatatype(java.lang.String datatype) |
Sets the datatype to the given JSON datatype string.
|
java.lang.String |
toString() |
castValue, containsStatementValue, findDescription, findLabel, findStatement, findStatement, findStatementDatatypeIdValue, findStatementDatatypeIdValue, findStatementEntityIdValue, findStatementEntityIdValue, findStatementGlobeCoordinatesValue, findStatementGlobeCoordinatesValue, findStatementGroup, findStatementGroup, findStatementItemIdValue, findStatementItemIdValue, findStatementMonolingualTextValue, findStatementMonolingualTextValue, findStatementPropertyIdValue, findStatementPropertyIdValue, findStatementQuantityValue, findStatementQuantityValue, findStatementStringValue, findStatementStringValue, findStatementTimeValue, findStatementTimeValue, findStatementValue, findStatementValue, getAllStatements, getUniqueStatementFromStatementGroup, getValueFromStatement, hasStatement, hasStatement, hasStatementValue, hasStatementValue, hasStatementValue, hasStatementValuegetRevisionIdgetAliases, getDescriptions, getJsonClaims, getJsonId, getLabels, getRevisionId, getSiteIri, getStatementGroups, setAliases, setDescriptions, setJsonClaims, setJsonId, setLabels, setRevisionId, setSiteIriclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindStatement, findStatement, findStatementDatatypeIdValue, findStatementDatatypeIdValue, findStatementEntityIdValue, findStatementEntityIdValue, findStatementGlobeCoordinatesValue, findStatementGlobeCoordinatesValue, findStatementGroup, findStatementGroup, findStatementItemIdValue, findStatementItemIdValue, findStatementMonolingualTextValue, findStatementMonolingualTextValue, findStatementPropertyIdValue, findStatementPropertyIdValue, findStatementQuantityValue, findStatementQuantityValue, findStatementStringValue, findStatementStringValue, findStatementTimeValue, findStatementTimeValue, findStatementValue, findStatementValue, getAllStatements, getStatementGroups, hasStatement, hasStatement, hasStatementValue, hasStatementValue, hasStatementValue, hasStatementValuefindDescription, findLabel, getAliases, getDescriptions, getLabelspublic JacksonPropertyDocument()
public java.lang.String getJsonDatatype()
getDatatype() is already used for another function of the
interface.setJsonDatatype(String)public void setJsonDatatype(java.lang.String datatype)
datatype - getJsonDatatype()public PropertyIdValue getPropertyId()
PropertyDocumentEntityDocument.getEntityId(), but declared with a
more specific result type.getPropertyId in interface PropertyDocumentpublic EntityIdValue getEntityId()
EntityDocumentgetEntityId in interface EntityDocumentpublic DatatypeIdValue getDatatype()
PropertyDocumentgetDatatype in interface PropertyDocumentDatatypeIdValuepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage