Tabnine Logo
BasicBeanDescription.getType
Code IndexAdd Tabnine to your IDE (free)

How to use
getType
method
in
org.codehaus.jackson.map.introspect.BasicBeanDescription

Best Java code snippets using org.codehaus.jackson.map.introspect.BasicBeanDescription.getType (Showing top 20 results out of 315)

origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method called to create {@link BeanSerializer} instance with
 * all accumulated information. Will construct a serializer if we
 * have enough information, or return null if not.
 */
public JsonSerializer<?> build()
{
  BeanPropertyWriter[] properties;
  // No properties or any getter? No real serializer; caller gets to handle
  if (_properties == null || _properties.isEmpty()) {
    if (_anyGetter == null) {
      return null;
    }
    properties = NO_PROPERTIES;
  } else {
    properties = _properties.toArray(new BeanPropertyWriter[_properties.size()]);
    
  }
  return new BeanSerializer(_beanDesc.getType(), properties, _filteredProperties, _anyGetter, _filterId);
}

origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * Method to add a property setter. Will ensure that there is no
 * unexpected override; if one is found will throw a
 * {@link IllegalArgumentException}.
 */
public void addProperty(SettableBeanProperty prop)
{
  SettableBeanProperty old =  _properties.put(prop.getName(), prop);
  if (old != null && old != prop) { // should never occur...
    throw new IllegalArgumentException("Duplicate property '"+prop.getName()+"' for "+_beanDesc.getType());
  }
}
origin: org.codehaus.jackson/jackson-mapper-asl

protected JavaType materializeAbstractType(DeserializationConfig config,
    BasicBeanDescription beanDesc)
  throws JsonMappingException
{
  final JavaType abstractType = beanDesc.getType();
  
  /* [JACKSON-502] (1.8): Now it is possible to have multiple resolvers too,
   *   as they are registered via module interface.
   */
  for (AbstractTypeResolver r : _factoryConfig.abstractTypeResolvers()) {
    JavaType concrete = r.resolveAbstractType(config, abstractType);
    if (concrete != null) {
      return concrete;
    }
  }
  return null;
}

origin: org.codehaus.jackson/jackson-mapper-asl

+name+"' (of type "+_beanDesc.getType()+"); serialization type "+serializationType+" has no content");
origin: org.codehaus.jackson/jackson-mapper-asl

/**
 * @since 1.9.0
 */
public ValueInstantiator constructValueInstantiator(DeserializationConfig config)
{
  StdValueInstantiator inst = new StdValueInstantiator(config, _beanDesc.getType());
  JavaType delegateType;
  if (_delegateCreator == null) {
    delegateType = null;
  } else {
    TypeBindings bindings = _beanDesc.bindingsForBeanType();
    delegateType = bindings.resolveType(_delegateCreator.getParameterType(0));
  }
  
  inst.configureFromObjectSettings(_defaultConstructor,
      _delegateCreator, delegateType,
      _propertyBasedCreator, _propertyBasedArgs);
  inst.configureFromStringCreator(_stringCreator);
  inst.configureFromIntCreator(_intCreator);
  inst.configureFromLongCreator(_longCreator);
  inst.configureFromDoubleCreator(_doubleCreator);
  inst.configureFromBooleanCreator(_booleanCreator);
  return inst;
}

origin: org.codehaus.jackson/jackson-mapper-asl

if (beanDesc.getType().isConcrete()) {
  AnnotatedConstructor defaultCtor = beanDesc.findDefaultConstructor();
  if (defaultCtor != null) {
origin: camunda/camunda-bpm-platform

/**
 * Method called to create {@link BeanSerializer} instance with
 * all accumulated information. Will construct a serializer if we
 * have enough information, or return null if not.
 */
public JsonSerializer<?> build()
{
  BeanPropertyWriter[] properties;
  // No properties or any getter? No real serializer; caller gets to handle
  if (_properties == null || _properties.isEmpty()) {
    if (_anyGetter == null) {
      return null;
    }
    properties = NO_PROPERTIES;
  } else {
    properties = _properties.toArray(new BeanPropertyWriter[_properties.size()]);
    
  }
  return new BeanSerializer(_beanDesc.getType(), properties, _filteredProperties, _anyGetter, _filterId);
}

origin: camunda/camunda-bpm-platform

/**
 * Method to add a property setter. Will ensure that there is no
 * unexpected override; if one is found will throw a
 * {@link IllegalArgumentException}.
 */
public void addProperty(SettableBeanProperty prop)
{
  SettableBeanProperty old =  _properties.put(prop.getName(), prop);
  if (old != null && old != prop) { // should never occur...
    throw new IllegalArgumentException("Duplicate property '"+prop.getName()+"' for "+_beanDesc.getType());
  }
}
origin: camunda/camunda-bpm-platform

protected JavaType materializeAbstractType(DeserializationConfig config,
    BasicBeanDescription beanDesc)
  throws JsonMappingException
{
  final JavaType abstractType = beanDesc.getType();
  
  /* [JACKSON-502] (1.8): Now it is possible to have multiple resolvers too,
   *   as they are registered via module interface.
   */
  for (AbstractTypeResolver r : _factoryConfig.abstractTypeResolvers()) {
    JavaType concrete = r.resolveAbstractType(config, abstractType);
    if (concrete != null) {
      return concrete;
    }
  }
  return null;
}

origin: camunda/camunda-bpm-platform

+name+"' (of type "+_beanDesc.getType()+"); serialization type "+serializationType+" has no content");
origin: camunda/camunda-bpm-platform

/**
 * @since 1.9.0
 */
public ValueInstantiator constructValueInstantiator(DeserializationConfig config)
{
  StdValueInstantiator inst = new StdValueInstantiator(config, _beanDesc.getType());
  JavaType delegateType;
  if (_delegateCreator == null) {
    delegateType = null;
  } else {
    TypeBindings bindings = _beanDesc.bindingsForBeanType();
    delegateType = bindings.resolveType(_delegateCreator.getParameterType(0));
  }
  
  inst.configureFromObjectSettings(_defaultConstructor,
      _delegateCreator, delegateType,
      _propertyBasedCreator, _propertyBasedArgs);
  inst.configureFromStringCreator(_stringCreator);
  inst.configureFromIntCreator(_intCreator);
  inst.configureFromLongCreator(_longCreator);
  inst.configureFromDoubleCreator(_doubleCreator);
  inst.configureFromBooleanCreator(_booleanCreator);
  return inst;
}

origin: com.barchart.wrap/barchart-wrap-jackson

/**
 * Method called to create {@link BeanSerializer} instance with
 * all accumulated information.
 */
public JsonSerializer<?> build()
{
  BeanPropertyWriter[] properties = (_properties == null || _properties.isEmpty()) ?
      NO_PROPERTIES : _properties.toArray(new BeanPropertyWriter[_properties.size()]);
  return new BeanSerializer(_beanDesc.getType(), properties, _filteredProperties,
      _anyGetter, _filterId);
}

origin: camunda/camunda-bpm-platform

if (beanDesc.getType().isConcrete()) {
  AnnotatedConstructor defaultCtor = beanDesc.findDefaultConstructor();
  if (defaultCtor != null) {
origin: org.codehaus.jackson/jackson-mapper-lgpl

/**
 * Method called to create {@link BeanSerializer} instance with
 * all accumulated information. Will construct a serializer if we
 * have enough information, or return null if not.
 */
public JsonSerializer<?> build()
{
  BeanPropertyWriter[] properties;
  // No properties or any getter? No real serializer; caller gets to handle
  if (_properties == null || _properties.isEmpty()) {
    if (_anyGetter == null) {
      return null;
    }
    properties = NO_PROPERTIES;
  } else {
    properties = _properties.toArray(new BeanPropertyWriter[_properties.size()]);
    
  }
  return new BeanSerializer(_beanDesc.getType(), properties, _filteredProperties, _anyGetter, _filterId);
}

origin: com.barchart.wrap/barchart-wrap-jackson

/**
 * Method to add a property setter. Will ensure that there is no
 * unexpected override; if one is found will throw a
 * {@link IllegalArgumentException}.
 */
public void addProperty(SettableBeanProperty prop)
{
  SettableBeanProperty old =  _properties.put(prop.getName(), prop);
  if (old != null && old != prop) { // should never occur...
    throw new IllegalArgumentException("Duplicate property '"+prop.getName()+"' for "+_beanDesc.getType());
  }
}

origin: ovea-deprecated/jetty-session-redis

/**
 * Method to add a property setter. Will ensure that there is no
 * unexpected override; if one is found will throw a
 * {@link IllegalArgumentException}.
 */
public void addProperty(SettableBeanProperty prop)
{
  SettableBeanProperty old =  _properties.put(prop.getName(), prop);
  if (old != null && old != prop) { // should never occur...
    throw new IllegalArgumentException("Duplicate property '"+prop.getName()+"' for "+_beanDesc.getType());
  }
}

origin: org.codehaus.jackson/jackson-mapper-lgpl

/**
 * Method to add a property setter. Will ensure that there is no
 * unexpected override; if one is found will throw a
 * {@link IllegalArgumentException}.
 */
public void addProperty(SettableBeanProperty prop)
{
  SettableBeanProperty old =  _properties.put(prop.getName(), prop);
  if (old != null && old != prop) { // should never occur...
    throw new IllegalArgumentException("Duplicate property '"+prop.getName()+"' for "+_beanDesc.getType());
  }
}
origin: org.codehaus.jackson/jackson-mapper-lgpl

protected JavaType materializeAbstractType(DeserializationConfig config,
    BasicBeanDescription beanDesc)
  throws JsonMappingException
{
  final JavaType abstractType = beanDesc.getType();
  
  /* [JACKSON-502] (1.8): Now it is possible to have multiple resolvers too,
   *   as they are registered via module interface.
   */
  for (AbstractTypeResolver r : _factoryConfig.abstractTypeResolvers()) {
    JavaType concrete = r.resolveAbstractType(config, abstractType);
    if (concrete != null) {
      return concrete;
    }
  }
  return null;
}

origin: ovea-deprecated/jetty-session-redis

protected JavaType materializeAbstractType(DeserializationConfig config,
    BasicBeanDescription beanDesc)
  throws JsonMappingException
{
  final JavaType abstractType = beanDesc.getType();
  
  /* [JACKSON-502] (1.8): Now it is possible to have multiple resolvers too,
   *   as they are registered via module interface.
   */
  for (AbstractTypeResolver r : _factoryConfig.abstractTypeResolvers()) {
    JavaType concrete = r.resolveAbstractType(config, abstractType);
    if (concrete != null) {
      return concrete;
    }
  }
  return null;
}

origin: com.barchart.wrap/barchart-wrap-jackson

  public JsonDeserializer<?> build(BeanProperty forProperty)
  {
    BeanPropertyMap propertyMap = new BeanPropertyMap(_properties.values());
    propertyMap.assignIndexes();

    return new BeanDeserializer(_beanDesc.getClassInfo(), _beanDesc.getType(), forProperty,
        _creators, propertyMap, _backRefProperties, _ignorableProps, _ignoreAllUnknown,
        _anySetter);
  }
}
org.codehaus.jackson.map.introspectBasicBeanDescriptiongetType

Popular methods of BasicBeanDescription

  • getBeanClass
  • getClassInfo
  • <init>
  • _findPropertyFields
  • findAnySetter
    Method used to locate the method of introspected class that implements org.codehaus.jackson.annotate
  • findDefaultConstructor
    Method that will locate the no-arg constructor for this class, if it has one, and that constructor h
  • findFactoryMethod
    Method that can be called to find if introspected class declares a static "valueOf" factory method t
  • findJsonValueMethod
    Method for locating the getter method that is annotated with org.codehaus.jackson.annotate.JsonValue
  • findMethod
  • findProperties
  • findSerializationInclusion
    Method for determining whether null properties should be written out for a Bean of introspected type
  • findSingleArgConstructor
    Method that can be called to locate a single-arg constructor that takes specified exact type (will n
  • findSerializationInclusion,
  • findSingleArgConstructor,
  • getConstructors,
  • getFactoryMethods,
  • hasKnownClassAnnotations,
  • instantiateBean,
  • isFactoryMethod,
  • bindingsForBeanType,
  • findAnyGetter

Popular in Java

  • Making http requests using okhttp
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JFrame (javax.swing)
  • JTextField (javax.swing)
  • Top Vim plugins
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