Package com.google.api.client.json
Class JsonObjectParser.Builder
- java.lang.Object
-
- com.google.api.client.json.JsonObjectParser.Builder
-
- Enclosing class:
- JsonObjectParser
public static class JsonObjectParser.Builder extends java.lang.Object
Builder.Implementation is not thread-safe.
- Since:
- 1.14
-
-
Field Summary
Fields Modifier and Type Field Description (package private) JsonFactory
jsonFactory
JSON factory.(package private) java.util.Collection<java.lang.String>
wrapperKeys
Wrapper keys for the JSON content or empty for none.
-
Constructor Summary
Constructors Constructor Description Builder(JsonFactory jsonFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JsonObjectParser
build()
Returns a new instance of a JSON object parser.JsonFactory
getJsonFactory()
Returns the JSON factory.java.util.Collection<java.lang.String>
getWrapperKeys()
Returns the wrapper keys for the JSON content.JsonObjectParser.Builder
setWrapperKeys(java.util.Collection<java.lang.String> wrapperKeys)
Sets the wrapper keys for the JSON content.
-
-
-
Field Detail
-
jsonFactory
final JsonFactory jsonFactory
JSON factory.
-
wrapperKeys
java.util.Collection<java.lang.String> wrapperKeys
Wrapper keys for the JSON content or empty for none.
-
-
Constructor Detail
-
Builder
public Builder(JsonFactory jsonFactory)
- Parameters:
jsonFactory
- JSON factory
-
-
Method Detail
-
build
public JsonObjectParser build()
Returns a new instance of a JSON object parser.
-
getJsonFactory
public final JsonFactory getJsonFactory()
Returns the JSON factory.
-
getWrapperKeys
public final java.util.Collection<java.lang.String> getWrapperKeys()
Returns the wrapper keys for the JSON content.
-
setWrapperKeys
public JsonObjectParser.Builder setWrapperKeys(java.util.Collection<java.lang.String> wrapperKeys)
Sets the wrapper keys for the JSON content.Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else.
-
-