| Constructor and Description |
|---|
JacksonReference() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Iterator<Snak> |
getAllSnaks()
Returns an interator over all snaks, without considering snak groups.
|
List<String> |
getPropertyOrder()
Returns the list of property ids used to order snaks as found in JSON.
|
List<SnakGroup> |
getSnakGroups()
Get the list of snak groups associated with this reference.
|
Map<String,List<JacksonSnak>> |
getSnaks()
Returns the map of snaks as found in JSON.
|
int |
hashCode() |
void |
setPropertyOrder(List<String> propertyOrder)
Sets the list of property ids to the given value.
|
void |
setSnaks(Map<String,List<JacksonSnak>> snaks)
Sets the map of snaks to the given value.
|
String |
toString() |
public List<SnakGroup> getSnakGroups()
ReferencegetSnakGroups in interface Referencepublic void setSnaks(Map<String,List<JacksonSnak>> snaks)
snaks - new valuepublic Map<String,List<JacksonSnak>> getSnaks()
public void setPropertyOrder(List<String> propertyOrder)
propertyOrder - new valuepublic List<String> getPropertyOrder()
public Iterator<Snak> getAllSnaks()
ReferencegetAllSnaks in interface ReferenceCopyright © 2014–2015 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage