public class JacksonInnerEntityId
extends java.lang.Object
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
JSON_ENTITY_TYPE_ITEM |
The string used in JSON to denote the type of entity id values that are
items.
|
static java.lang.String |
JSON_ENTITY_TYPE_PROPERTY |
The string used in JSON to denote the type of entity id values that are
properties.
|
| Constructor | Description |
|---|---|
JacksonInnerEntityId() |
Constructor.
|
JacksonInnerEntityId(java.lang.String id) |
Constructor.
|
JacksonInnerEntityId(java.lang.String entityType,
int numericId) |
Deprecated.
You should input the entity Id
|
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object o) |
|
java.lang.String |
getJsonEntityType() |
Returns the entity type string as used in JSON.
|
int |
getNumericId() |
Returns the numeric item id as used in JSON.
|
java.lang.String |
getStringId() |
Returns the standard string version of the entity id encoded in this
value.
|
void |
setJsonEntityType(java.lang.String entityType) |
Sets the entity type string to the given value.
|
void |
setNumericId(int numericId) |
Sets the numeric item id to the given value.
|
void |
setStringId(java.lang.String id) |
Sets the string entity id to the given value.
|
public static final java.lang.String JSON_ENTITY_TYPE_ITEM
public static final java.lang.String JSON_ENTITY_TYPE_PROPERTY
public JacksonInnerEntityId()
@Deprecated
public JacksonInnerEntityId(java.lang.String entityType,
int numericId)
entityType - (case-sensitive)numericId - public JacksonInnerEntityId(java.lang.String id)
public java.lang.String getJsonEntityType()
public void setJsonEntityType(java.lang.String entityType)
entityType - new valuepublic int getNumericId()
public void setNumericId(int numericId)
numericId - new valuepublic java.lang.String getStringId()
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - if the entity type of this value is unknown and can thus not
be mapped to a string idpublic void setStringId(java.lang.String id)
id - new valuepublic boolean equals(java.lang.Object o)
equals 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