Package org.aksw.jenax.io.json.gon
Class GonProviderGson
java.lang.Object
org.aksw.jenax.io.json.gon.GonProviderGson
- All Implemented Interfaces:
GonProvider<String,com.google.gson.JsonPrimitive>
public class GonProviderGson
extends Object
implements GonProvider<String,com.google.gson.JsonPrimitive>
-
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) newArray()newLiteral(com.google.gson.JsonPrimitive value) newNull()static GonProviderGsonof()static GonProviderGsonof(com.google.gson.Gson gson) voidremoveElement(Object arr, int index) voidremoveProperty(Object obj, Object key) voidsetElement(Object arr, int index, Object value) voidsetProperty(Object obj, String key, Object value)
-
Field Details
-
gson
protected com.google.gson.Gson gson
-
-
Constructor Details
-
GonProviderGson
protected GonProviderGson(com.google.gson.Gson gson)
-
-
Method Details
-
of
-
of
-
parse
- Specified by:
parsein interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
newObject
- Specified by:
newObjectin interfaceGonProvider<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
- Specified by:
newArrayin interfaceGonProvider<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>
-
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
- Specified by:
newNullin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-
isNull
- Specified by:
isNullin interfaceGonProvider<String,com.google.gson.JsonPrimitive>
-