public 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, siteIri| Constructor and Description |
|---|
JacksonPropertyDocument()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
DatatypeIdValue |
getDatatype()
Get the datatype id of the datatype defined for this property.
|
EntityIdValue |
getEntityId()
Return the ID of the entity that the data refers to
|
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(String datatype)
Sets the datatype to the given JSON datatype string.
|
String |
toString() |
getAliases, getAllStatements, getDescriptions, getJsonClaims, getJsonId, getLabels, getSiteIri, getStatementGroups, setAliases, setDescriptions, setJsonClaims, setJsonId, setLabels, setSiteIriclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAliases, getDescriptions, getLabelsgetAllStatements, getStatementGroupspublic JacksonPropertyDocument()
public String getJsonDatatype()
getDatatype() is already used for another function of the
interface.setJsonDatatype(String)public void setJsonDatatype(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 PropertyDocumentDatatypeIdValueCopyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage