Class 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)  
    • 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.