Creates proxies that implement GraphObject, GraphObjectList, and their derived types. These proxies allow access to underlying collections and name/value property bags via strongly-typed property getters and setters.
This supports get/set properties that use primitive types, JSON types, Date, other GraphObject types, Iterable, Collection, List, and GraphObjectList.
Estende: | Object |
Pacote: | model |
create(JSONObject)
Creates a GraphObject proxy that provides typed access to the data in an underlying JSONObject.
public static GraphObject create(JSONObject json)
Parâmetro | Descrição |
---|---|
json | The JSONObject containing the data to be exposed |
create(JSONObject, Class)
Creates a GraphObject-derived proxy that provides typed access to the data in an underlying JSONObject.
public static GraphObject create(JSONObject json, Class graphObjectClass)
Parâmetro | Descrição |
---|---|
json | The JSONObject containing the data to be exposed |
graphObjectClass | The GraphObject-derived type to return |
create()
Creates a GraphObject proxy that initially contains no data.
public static GraphObject create()
create(Class)
Creates a GraphObject-derived proxy that initially contains no data.
public static GraphObject create(Class graphObjectClass)
Parâmetro | Descrição |
---|---|
graphObjectClass | The GraphObject-derived type to return |
hasSameId(GraphObject, GraphObject)
Determines if two GraphObjects represent the same underlying graph object, based on their IDs.
public static boolean hasSameId(GraphObject a, GraphObject b)
Parâmetro | Descrição |
---|---|
a | A graph object |
b | Another graph object |
createList(JSONArray, Class)
Creates a GraphObjectList-derived proxy that provides typed access to the data in an underlying JSONArray.
public static GraphObjectList createList(JSONArray array, Class graphObjectClass)
Parâmetro | Descrição |
---|---|
array | The JSONArray containing the data to be exposed |
graphObjectClass | The GraphObject-derived type to return |
createList(Class)
Creates a GraphObjectList-derived proxy that initially contains no data.
public static GraphObjectList createList(Class graphObjectClass)
Parâmetro | Descrição |
---|---|
graphObjectClass | The GraphObject-derived type to return |