Jackson Data Binding Source Code

Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java".

  • Jackson Data Binding module allows you to converts JSON to and from POJO (Plain Old Java Object) using property accessor or using annotations.
  • Jackson Databind Source Code files are provided in the source packge (jackson-databind-2.12.4-sources.jar). You can download it at Jackson Maven Website.

    You can also browse Jackson Databind Source Code below:

    ✍: FYIcenter.com

    com/fasterxml/jackson/databind/cfg/MutableConfigOverride.java

    package com.fasterxml.jackson.databind.cfg;
    
    import com.fasterxml.jackson.annotation.JsonAutoDetect;
    import com.fasterxml.jackson.annotation.JsonFormat;
    import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
    import com.fasterxml.jackson.annotation.JsonInclude;
    import com.fasterxml.jackson.annotation.JsonSetter;
    
    /**
     * Extension of {@link ConfigOverride} that allows changing of
     * contained configuration settings. Exposed to
     * {@link com.fasterxml.jackson.databind.Module}s that want to set
     * overrides, but not exposed to functionality that wants to apply
     * overrides.
     *
     * @since 2.8
     */
    public class MutableConfigOverride
        extends ConfigOverride
        implements java.io.Serializable
    {
        private static final long serialVersionUID = 1L;
    
        public MutableConfigOverride() { super(); }
    
        protected MutableConfigOverride(MutableConfigOverride src) {
            super(src);
        }
    
        public MutableConfigOverride copy() {
            return new MutableConfigOverride(this);
        }
    
        public MutableConfigOverride setFormat(JsonFormat.Value v) {
            _format = v;
            return this;
        }
    
        /**
         * Override inclusion setting for all properties contained in POJOs of the
         * associated type.
         *
         * @param v Inclusion setting to apply contained properties.
         */
        public MutableConfigOverride setInclude(JsonInclude.Value v) {
            _include = v;
            return this;
        }
    
        /**
         * Override inclusion setting for properties of the associated type
         * regardless of the type of the POJO containing it.
         *
         * @param v Inclusion setting to apply for properties of associated type.
         *
         * @since 2.9
         */
        public MutableConfigOverride setIncludeAsProperty(JsonInclude.Value v) {
            _includeAsProperty = v;
            return this;
        }
    
        public MutableConfigOverride setIgnorals(JsonIgnoreProperties.Value v) {
            _ignorals = v;
            return this;
        }
    
        public MutableConfigOverride setIsIgnoredType(Boolean v) {
            _isIgnoredType = v;
            return this;
        }
    
        /**
         * @since 2.9
         */
        public MutableConfigOverride setSetterInfo(JsonSetter.Value v) {
            _setterInfo = v;
            return this;
        }
    
        /**
         * @since 2.9
         */
        public MutableConfigOverride setVisibility(JsonAutoDetect.Value v) {
            _visibility = v;
            return this;
        }
    
        /**
         * @since 2.9
         */
        public MutableConfigOverride setMergeable(Boolean v) {
            _mergeable = v;
            return this;
        }
    }
    

    com/fasterxml/jackson/databind/cfg/MutableConfigOverride.java

     

    ⇒ Jackson Annotations Source Code

    ⇐ Download and Install Jackson Binary Package

    ⇑ Downloading and Reviewing jackson-*.jar

    ⇑⇑ Jackson - Java JSON library

    2022-03-29, 31729👍, 0💬