Package org.jclouds.chef.config
Class ChefParserModule.DataBagItemAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<L>
-
- org.jclouds.json.internal.NullHackJsonLiteralAdapter<DatabagItem>
-
- org.jclouds.chef.config.ChefParserModule.DataBagItemAdapter
-
- Enclosing class:
- ChefParserModule
@Singleton public static class ChefParserModule.DataBagItemAdapter extends NullHackJsonLiteralAdapter<DatabagItem>
writes or reads the literal directly
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jclouds.json.internal.NullHackJsonLiteralAdapter
NullHackJsonLiteralAdapter.NullReplacingWriter
-
-
Constructor Summary
Constructors Constructor Description DataBagItemAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DatabagItem
createJsonLiteralFromRawJson(String text)
User supplied type that holds json literally.protected String
toString(DatabagItem value)
-
Methods inherited from class org.jclouds.json.internal.NullHackJsonLiteralAdapter
getWriter, read, write
-
-
-
-
Method Detail
-
createJsonLiteralFromRawJson
protected DatabagItem createJsonLiteralFromRawJson(String text)
Description copied from class:NullHackJsonLiteralAdapter
User supplied type that holds json literally. Ex. number as8
, boolean astrue
, string as"value"
, object as {@code , list {@code []}.- Specified by:
createJsonLiteralFromRawJson
in classNullHackJsonLiteralAdapter<DatabagItem>
-
toString
protected String toString(DatabagItem value)
- Overrides:
toString
in classNullHackJsonLiteralAdapter<DatabagItem>
-
-