Class GonProviderGson
java.lang.Object
org.aksw.jenax.graphql.sparql.v2.gon.model.GonProviderGson
- All Implemented Interfaces:
GonProvider<String,,com.google.gson.JsonPrimitive> GonProviderApi<com.google.gson.JsonElement,String, com.google.gson.JsonPrimitive>
public class GonProviderGson
extends Object
implements GonProviderApi<com.google.gson.JsonElement,String,com.google.gson.JsonPrimitive>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.aksw.jenax.graphql.sparql.v2.gon.model.GonProviderApi
GonProviderApi.GonProviderApiWrapper<K,V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(Object arr, Object value) protected static com.google.gson.JsonArrayprotected static com.google.gson.JsonElementprotected static com.google.gson.JsonObjectprotected static com.google.gson.JsonPrimitiveasPrimitive(Object obj) com.google.gson.JsonPrimitivegetLiteral(Object obj) getProperty(Object obj, Object key) booleanbooleanNon-null literal.booleanbooleanlistElements(Object arr) listProperties(Object obj) com.google.gson.JsonArraynewArray()newDirectLiteral(com.google.gson.JsonPrimitive value) com.google.gson.JsonPrimitivenewLiteral(boolean value) com.google.gson.JsonPrimitivenewLiteral(Number value) com.google.gson.JsonPrimitivenewLiteral(String value) com.google.gson.JsonNullnewNull()com.google.gson.JsonObjectstatic GonProviderGsonof()static GonProviderGsonof(com.google.gson.Gson gson) com.google.gson.JsonElementvoidremoveElement(Object arr, int index) voidremoveProperty(Object obj, Object key) voidsetElement(Object arr, int index, Object value) voidsetProperty(Object obj, String key, Object value) com.google.gson.JsonElement
-
Field Details
-
gson
protected com.google.gson.Gson gson
-
-
Constructor Details
-
GonProviderGson
protected GonProviderGson(com.google.gson.Gson gson)
-
-
Method Details
-
of
-
of
-
upcast
- Specified by:
upcastin interfaceGonProviderApi<com.google.gson.JsonElement,String, com.google.gson.JsonPrimitive>
-
parse
- Specified by:
parsein interfaceGonProvider<String,com.google.gson.JsonPrimitive> - Specified by:
parsein interfaceGonProviderApi<com.google.gson.JsonElement,String, com.google.gson.JsonPrimitive>
-
newObject
public com.google.gson.JsonObject newObject()- Specified by:
newObjectin interfaceGonProvider<String,com.google.gson.JsonPrimitive> - Specified by:
newObjectin interfaceGonProviderApi<com.google.gson.JsonElement,String, com.google.gson.JsonPrimitive>
-
isObject
- Specified by:
isObjectin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
asElement
-
asObject
-
asArray
-
asPrimitive
-
setProperty
- Specified by:
setPropertyin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
getProperty
- Specified by:
getPropertyin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
removeProperty
- Specified by:
removePropertyin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
listProperties
- Specified by:
listPropertiesin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
newArray
public com.google.gson.JsonArray newArray()- Specified by:
newArrayin interfaceGonProvider<String,com.google.gson.JsonPrimitive> - Specified by:
newArrayin interfaceGonProviderApi<com.google.gson.JsonElement,String, com.google.gson.JsonPrimitive>
-
isArray
- Specified by:
isArrayin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
addElement
- Specified by:
addElementin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
setElement
- Specified by:
setElementin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
removeElement
- Specified by:
removeElementin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
listElements
- Specified by:
listElementsin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
newDirectLiteral
- Specified by:
newDirectLiteralin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
newLiteral
public com.google.gson.JsonPrimitive newLiteral(boolean value) - Specified by:
newLiteralin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
newLiteral
- Specified by:
newLiteralin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
newLiteral
- Specified by:
newLiteralin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
isLiteral
Description copied from interface:GonProviderNon-null literal.- Specified by:
isLiteralin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
getLiteral
- Specified by:
getLiteralin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
newNull
public com.google.gson.JsonNull newNull()- Specified by:
newNullin interfaceGonProvider<String,com.google.gson.JsonPrimitive> - Specified by:
newNullin interfaceGonProviderApi<com.google.gson.JsonElement,String, com.google.gson.JsonPrimitive>
-
isNull
- Specified by:
isNullin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-