public class JacksonPropertyDocument extends JacksonTermedDocument 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.
|
String |
getJsonType()
Returns the JSON type string of the entity that this document refers to.
|
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, getDescriptions, getJsonId, getLabels, getSiteIri, setAliases, setDescriptions, setJsonId, setLabels, setSiteIriclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAliases, getDescriptions, getLabelspublic 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 PropertyDocumentDatatypeIdValuepublic String getJsonType()
JacksonTermedDocumentgetJsonType in class JacksonTermedDocumentJacksonTermedDocument.JSON_TYPE_ITEM or
JacksonTermedDocument.JSON_TYPE_PROPERTYCopyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage