public class JacksonInnerEntityId extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_ENTITY_TYPE_ITEM
The string used in JSON to denote the type of entity id values that are
items.
|
static String |
JSON_ENTITY_TYPE_PROPERTY
The string used in JSON to denote the type of entity id values that are
properties.
|
| Constructor and Description |
|---|
JacksonInnerEntityId()
Constructor.
|
JacksonInnerEntityId(String entityType,
int numericId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getJsonEntityType()
Returns the entity type string as used in JSON.
|
int |
getNumericId()
Returns the numeric item id as used in JSON.
|
String |
getStringId()
Returns the standard string version of the entity id encoded in this
value.
|
void |
setJsonEntityType(String entityType)
Sets the entity type string to the given value.
|
void |
setNumericId(int numericId)
Sets the numeric item id to the given value.
|
public static final String JSON_ENTITY_TYPE_ITEM
public static final String JSON_ENTITY_TYPE_PROPERTY
public JacksonInnerEntityId()
public JacksonInnerEntityId(String entityType, int numericId)
entityType - (case-sensitive)numericId - public String getJsonEntityType()
public void setJsonEntityType(String entityType)
entityType - new valuepublic int getNumericId()
public void setNumericId(int numericId)
numericId - new valuepublic String getStringId() throws IllegalArgumentException
IllegalArgumentException - if the entity type of this value is unknown and can thus not
be mapped to a string idCopyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage