Class GsonJsonObjectHelper
- java.lang.Object
-
- net.obvj.confectory.internal.helper.GenericJsonConfigurationHelper<com.google.gson.JsonObject>
-
- net.obvj.confectory.internal.helper.GsonJsonObjectHelper
-
- All Implemented Interfaces:
ConfigurationDataRetriever<com.google.gson.JsonObject>,ConfigurationHelper<com.google.gson.JsonObject>
public class GsonJsonObjectHelper extends GenericJsonConfigurationHelper<com.google.gson.JsonObject>
A specialized Configuration Helper that retrieves data from Gson'sJsonObject, with JSONPath capabilities.- Since:
- 0.4.0
- Author:
- oswaldo.bapvic.jr (Oswaldo Junior)
-
-
Constructor Summary
Constructors Constructor Description GsonJsonObjectHelper(com.google.gson.JsonObject jsonObject)Creates a new helper for the givenJsonObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationMerger<com.google.gson.JsonObject>configurationMerger()StringgetAsString()-
Methods inherited from class net.obvj.confectory.internal.helper.GenericJsonConfigurationHelper
get, getBean, getBoolean, getDouble, getInteger, getLong, getMandatoryBoolean, getMandatoryDouble, getMandatoryInteger, getMandatoryLong, getMandatoryString, getString
-
-
-
-
Method Detail
-
configurationMerger
public ConfigurationMerger<com.google.gson.JsonObject> configurationMerger()
-
getAsString
public String getAsString()
- Returns:
- a pretty-printed representation of the
JsonObjectin context - Since:
- 2.5.0
-
-