Tabnine Logo
ConfigOverrides.findOrCreateOverride
Code IndexAdd Tabnine to your IDE (free)

How to use
findOrCreateOverride
method
in
com.fasterxml.jackson.databind.cfg.ConfigOverrides

Best Java code snippets using com.fasterxml.jackson.databind.cfg.ConfigOverrides.findOrCreateOverride (Showing top 4 results out of 315)

origin: redisson/redisson

/**
 * Accessor for getting a mutable configuration override object for
 * given type, needed to add or change per-type overrides applied
 * to properties of given type.
 * Usage is through returned object by colling "setter" methods, which
 * directly modify override object and take effect directly.
 * For example you can do
 *<pre>
 *   mapper.configOverride(java.util.Date.class)
 *       .setFormat(JsonFormat.Value.forPattern("yyyy-MM-dd"));
 *<pre>
 * to change the default format to use for properties of type
 * {@link java.util.Date} (possibly further overridden by per-property
 * annotations)
 *
 * @since 2.8
 */
public MutableConfigOverride configOverride(Class<?> type) {
  return _configOverrides.findOrCreateOverride(type);
}
origin: com.jwebmp.jackson.core/jackson-databind

/**
 * Accessor for getting a mutable configuration override object for
 * given type, needed to add or change per-type overrides applied
 * to properties of given type.
 * Usage is through returned object by colling "setter" methods, which
 * directly modify override object and take effect directly.
 * For example you can do
 *<pre>
 *   mapper.configOverride(java.util.Date.class)
 *       .setFormat(JsonFormat.Value.forPattern("yyyy-MM-dd"));
 *<pre>
 * to change the default format to use for properties of type
 * {@link java.util.Date} (possibly further overridden by per-property
 * annotations)
 *
 * @since 2.8
 */
public MutableConfigOverride configOverride(Class<?> type) {
  return _configOverrides.findOrCreateOverride(type);
}
origin: Nextdoor/bender

/**
 * Accessor for getting a mutable configuration override object for
 * given type, needed to add or change per-type overrides applied
 * to properties of given type.
 * Usage is through returned object by colling "setter" methods, which
 * directly modify override object and take effect directly.
 * For example you can do
 *<pre>
 *   mapper.configOverride(java.util.Date.class)
 *       .setFormat(JsonFormat.Value.forPattern("yyyy-MM-dd"));
 *<pre>
 * to change the default format to use for properties of type
 * {@link java.util.Date} (possibly further overridden by per-property
 * annotations)
 *
 * @since 2.8
 */
public MutableConfigOverride configOverride(Class<?> type) {
  return _propertyOverrides.findOrCreateOverride(type);
}
origin: FasterXML/jackson-dataformat-xml

public Builder(XmlFactory f) {
  super(f);
  // 21-Jun-2017, tatu: Seems like there are many cases in XML where ability to coerce empty
  //    String into `null` (where it otherwise is an error) is very useful.
  enable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
  _defaultUseWrapper = JacksonXmlAnnotationIntrospector.DEFAULT_USE_WRAPPER;
  _nameForTextElement = FromXmlParser.DEFAULT_UNNAMED_TEXT_PROPERTY;
  // as well as AnnotationIntrospector: note, however, that "use wrapper" may well
  // change later on
  annotationIntrospector(new JacksonXmlAnnotationIntrospector(_defaultUseWrapper));
  // Need to mangle Type Ids (to avoid invalid XML Name characters); one way is this:
  typeResolverProvider(new XmlTypeResolverProvider());
  // Some changes easiest to apply via Module
  addModule(new XmlModule());
  // 04-May-2018, tatu: Important! Let's also default `String` `null` handling to coerce
  //   to empty string -- this lets us induce `null` from empty tags first
  _configOverrides.findOrCreateOverride(String.class)
    .setNullHandling(JsonSetter.Value.forValueNulls(Nulls.AS_EMPTY));
}
com.fasterxml.jackson.databind.cfgConfigOverridesfindOrCreateOverride

Popular methods of ConfigOverrides

  • <init>
  • _newMap
  • copy
  • findOverride
  • getDefaultInclusion
  • getDefaultMergeable
  • getDefaultSetterInfo
  • getDefaultVisibility
  • setDefaultInclusion
  • setDefaultMergeable
  • setDefaultSetterInfo
  • setDefaultVisibility
  • setDefaultSetterInfo,
  • setDefaultVisibility

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • compareTo (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now