Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  package com.fasterxml.jackson.databind.cfg;
  
  import java.util.Locale;
  import java.util.Map;
  import java.util.TimeZone;
  
 
 public abstract class MapperConfigBase<CFG extends ConfigFeature,
     T extends MapperConfigBase<CFG,T>>
     extends MapperConfig<T>
     implements java.io.Serializable
 {
     private static final long serialVersionUID = -8378230381628000111L;
 
     private final static int DEFAULT_MAPPER_FEATURES = collectFeatureDefaults(MapperFeature.class);
 
     /*
     /**********************************************************
     /* Immutable config
     /**********************************************************
      */

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

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

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

    
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.
 
     protected final Class<?> _view;
     
     /*
     /**********************************************************
     /* Construction
     /**********************************************************
      */

    
Constructor used when creating a new instance (compared to that of creating fluent copies)
 
     protected MapperConfigBase(BaseSettings base,
             SubtypeResolver strMap<ClassKey,Class<?>> mixins)
     {
         super(base);
          = mixins;
          = str;
          = null;
          = null;
     }
    
    
Pass-through constructor used when no changes are needed to the base class.
 
     protected MapperConfigBase(MapperConfigBase<CFG,T> src)
     {
         super(src);
          = src._mixInAnnotations;
          = src._subtypeResolver;
          = src._rootName;
          = src._view;
     }
 
     protected MapperConfigBase(MapperConfigBase<CFG,T> srcBaseSettings base)
     {
         super(basesrc._mapperFeatures);
          = src._mixInAnnotations;
         = src._subtypeResolver;
         = src._rootName;
         = src._view;
    }
    
    protected MapperConfigBase(MapperConfigBase<CFG,T> srcint mapperFeatures)
    {
        super(src._basemapperFeatures);
         = src._mixInAnnotations;
         = src._subtypeResolver;
         = src._rootName;
         = src._view;
    }
    protected MapperConfigBase(MapperConfigBase<CFG,T> srcSubtypeResolver str) {
        super(src);
         = src._mixInAnnotations;
         = str;
         = src._rootName;
         = src._view;
    }
    protected MapperConfigBase(MapperConfigBase<CFG,T> srcString rootName) {
        super(src);
         = src._mixInAnnotations;
         = src._subtypeResolver;
         = rootName;
         = src._view;
    }
    protected MapperConfigBase(MapperConfigBase<CFG,T> srcClass<?> view)
    {
        super(src);
         = src._mixInAnnotations;
         = src._subtypeResolver;
         = src._rootName;
         = view;
    }

    

Since:
2.1
    protected MapperConfigBase(MapperConfigBase<CFG,T> srcMap<ClassKey,Class<?>> mixins)
    {
        super(src);
         = mixins;
         = src._subtypeResolver;
         = src._rootName;
         = src._view;
    }
    
    /*
    /**********************************************************
    /* Addition fluent factory methods, common to all sub-types
    /**********************************************************
     */

    
Method for constructing and returning a new instance with different com.fasterxml.jackson.databind.AnnotationIntrospector to use (replacing old one).

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

    public abstract T with(AnnotationIntrospector ai);

    
Method for constructing and returning a new instance with additional com.fasterxml.jackson.databind.AnnotationIntrospector appended (as the lowest priority one)
    public abstract T withAppendedAnnotationIntrospector(AnnotationIntrospector introspector);

    
Method for constructing and returning a new instance with additional com.fasterxml.jackson.databind.AnnotationIntrospector inserted (as the highest priority one)
    public abstract T withInsertedAnnotationIntrospector(AnnotationIntrospector introspector);
    
    
Method for constructing and returning a new instance with different com.fasterxml.jackson.databind.introspect.ClassIntrospector to use.

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

    public abstract T with(ClassIntrospector ci);

    
Method for constructing and returning a new instance with different java.text.DateFormat to use.

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

    public abstract T with(DateFormat df);

    
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.

    public abstract T with(HandlerInstantiator hi);
    
    
Method for constructing and returning a new instance with different com.fasterxml.jackson.databind.PropertyNamingStrategy to use.

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

    public abstract T with(PropertyNamingStrategy strategy);
    
    
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.
    public abstract T withRootName(String rootName);

    
Method for constructing and returning a new instance with different com.fasterxml.jackson.databind.jsontype.SubtypeResolver to use.

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

    public abstract T with(SubtypeResolver str);
    
    
Method for constructing and returning a new instance with different com.fasterxml.jackson.databind.type.TypeFactory to use.
    public abstract T with(TypeFactory typeFactory);

    
Method for constructing and returning a new instance with different com.fasterxml.jackson.databind.jsontype.TypeResolverBuilder to use.
    public abstract T with(TypeResolverBuilder<?> trb);

    
Method for constructing and returning a new instance with different view to use.
    public abstract T withView(Class<?> view);
    
    
Method for constructing and returning a new instance with different com.fasterxml.jackson.databind.introspect.VisibilityChecker to use.
    public abstract T with(VisibilityChecker<?> vc);

    
Method for constructing and returning a new instance with different minimal visibility level for specified property type
    public abstract T withVisibility(PropertyAccessor forMethodJsonAutoDetect.Visibility visibility);

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

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

    
Method for constructing and returning a new instance with different default com.fasterxml.jackson.core.Base64Variant to use with base64-encoded binary values.
    public abstract T with(Base64Variant base64);
    
    /*
    /**********************************************************
    /* Simple accessors
    /**********************************************************
     */
    
    
Accessor for object used for finding out all reachable subtypes for supertypes; needed when a logical type name is used instead of class name (or custom scheme).
    @Override
    public final SubtypeResolver getSubtypeResolver() {
        return ;
    }
    public final String getRootName() {
        return ;
    }
    @Override
    public final Class<?> getActiveView() {
        return ;
    }
    
    /*
    /**********************************************************
    /* ClassIntrospector.MixInResolver impl:
    /**********************************************************
     */

    
Method that will check if there are "mix-in" classes (with mix-in annotations) for given class
    @Override
    public final Class<?> findMixInClassFor(Class<?> cls) {
        return ( == null) ? null : .get(new ClassKey(cls));
    }
    public final int mixInCount() {
        return ( == null) ? 0 : .size();
    }
New to GrepCode? Check out our FAQ X