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.
|
| Constructor and Description |
|---|
JacksonInnerEntityId()
Constructor.
|
JacksonInnerEntityId(String entityType,
int numericId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getEntityType()
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 |
setEntityType(String entityType)
Sets the entity type string to the given value.
|
void |
setNumericId(int numericId)
Sets thenumeric item id to the given value.
|
public static final String JSON_ENTITY_TYPE_ITEM
public JacksonInnerEntityId()
public JacksonInnerEntityId(String entityType, int numericId) throws IllegalArgumentException
entityType - (case-sensitive)numericId - IllegalArgumentException - if the entity type was unrecognizedpublic String getEntityType()
public void setEntityType(String entityType) throws IllegalArgumentException
entityType - new valueIllegalArgumentExceptionpublic int getNumericId()
public void setNumericId(int numericId)
numericId - new valuepublic String getStringId()
Copyright © 2014 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage