com.fasterxml.jackson.databind.cfg

Class MapperConfigBase<CFG extends ConfigFeature,T extends MapperConfigBase<CFG,T>>

    • Field Detail

      • _mixInAnnotations

        protected final Map<ClassKey,Class<?>> _mixInAnnotations
        Mix-in annotation mappings to use, if any: immutable, can not be changed once defined.
      • _subtypeResolver

        protected final SubtypeResolver _subtypeResolver
        Registered concrete subtypes that can be used instead of (or in addition to) ones declared using annotations.
      • _rootName

        protected final String _rootName
        Explicitly defined root name to use, if any; if empty String, will disable root-name wrapping; if null, will use defaults
      • _view

        protected final Class<?> _view
        View to use for filtering out properties to serialize or deserialize. Null if none (will also be assigned null if Object.class is defined), meaning that all properties are to be included.
      • _attributes

        protected final ContextAttributes _attributes
        Contextual attributes accessible (get and set) during processing, on per-call basis.
        Since:
        2.3
    • Method Detail

      • with

        public abstract T with(AnnotationIntrospector ai)
        Method for constructing and returning a new instance with different AnnotationIntrospector to use (replacing old one).

        NOTE: make sure to register new instance with ObjectMapper if directly calling this method.

      • withAppendedAnnotationIntrospector

        public abstract T withAppendedAnnotationIntrospector(AnnotationIntrospector introspector)
        Method for constructing and returning a new instance with additional AnnotationIntrospector appended (as the lowest priority one)
      • withInsertedAnnotationIntrospector

        public abstract T withInsertedAnnotationIntrospector(AnnotationIntrospector introspector)
        Method for constructing and returning a new instance with additional AnnotationIntrospector inserted (as the highest priority one)
      • with

        public abstract T with(ClassIntrospector ci)
        Method for constructing and returning a new instance with different ClassIntrospector to use.

        NOTE: make sure to register new instance with ObjectMapper if directly calling this method.

      • with

        public abstract T with(DateFormat df)
        Method for constructing and returning a new instance with different DateFormat to use.

        NOTE: make sure to register new instance with ObjectMapper if directly calling this method.

      • with

        public abstract T with(HandlerInstantiator hi)
        Method for constructing and returning a new instance with different HandlerInstantiator to use.

        NOTE: make sure to register new instance with ObjectMapper if directly calling this method.

      • with

        public abstract T with(PropertyNamingStrategy strategy)
        Method for constructing and returning a new instance with different PropertyNamingStrategy to use.

        NOTE: make sure to register new instance with ObjectMapper if directly calling this method.

      • withRootName

        public abstract T withRootName(String rootName)
        Method for constructing and returning a new instance with different root name to use (none, if null).

        Note that when a root name is set to a non-Empty String, this will automatically force use of root element wrapping with given name. If empty String passed, will disable root name wrapping; and if null used, will instead use SerializationFeature to determine if to use wrapping, and annotation (or default name) for actual root name to use.

        Parameters:
        rootName - to use: if null, means "use default" (clear setting); if empty String ("") means that no root name wrapping is used; otherwise defines root name to use.
      • with

        public abstract T with(SubtypeResolver str)
        Method for constructing and returning a new instance with different SubtypeResolver to use.

        NOTE: make sure to register new instance with ObjectMapper if directly calling this method.

      • with

        public abstract T with(TypeFactory typeFactory)
        Method for constructing and returning a new instance with different TypeFactory to use.
      • withView

        public abstract T withView(Class<?> view)
        Method for constructing and returning a new instance with different view to use.
      • withVisibility

        public abstract T withVisibility(com.fasterxml.jackson.annotation.PropertyAccessor forMethod,
                       com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility visibility)
        Method for constructing and returning a new instance with different minimal visibility level for specified property type
      • with

        public abstract T with(Locale l)
        Method for constructing and returning a new instance with different default Locale to use for formatting.
      • with

        public abstract T with(TimeZone tz)
        Method for constructing and returning a new instance with different default TimeZone to use for formatting of date values.
      • with

        public abstract T with(com.fasterxml.jackson.core.Base64Variant base64)
        Method for constructing and returning a new instance with different default Base64Variant to use with base64-encoded binary values.
      • with

        public abstract T with(ContextAttributes attrs)
        Method for constructing an instance that has specified contextual attributes.
        Since:
        2.3
      • withAttributes

        public T withAttributes(Map<Object,Object> attributes)
        Method for constructing an instance that has only specified attributes, removing any attributes that exist before the call.
        Since:
        2.3
      • withAttribute

        public T withAttribute(Object key,
                      Object value)
        Method for constructing an instance that has specified value for attribute for given key.
        Since:
        2.3
      • withoutAttribute

        public T withoutAttribute(Object key)
        Method for constructing an instance that has no value for attribute for given key.
        Since:
        2.3
      • getRootName

        public final String getRootName()
      • mixInCount

        public final int mixInCount()

Copyright © 2014 FasterXML. All Rights Reserved.