com.fasterxml.jackson.databind.introspect

## Class ObjectIdInfo

- java.lang.Object
- - com.fasterxml.jackson.databind.introspect.ObjectIdInfo

-     public class ObjectIdInfo
      extends Object

  Container object that encapsulates information usually derived from `JsonIdentityInfo` annotation or its custom alternatives

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected boolean` | `_alwaysAsId`
    `protected Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>>` | `_generator`
    `protected PropertyName` | `_propertyName`
    `protected Class<? extends com.fasterxml.jackson.annotation.ObjectIdResolver>` | `_resolver`
    `protected Class<?>` | `_scope`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `` | `ObjectIdInfo(PropertyName name, Class<?> scope, Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen)` Deprecated.
    `protected` | `ObjectIdInfo(PropertyName prop, Class<?> scope, Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen, boolean alwaysAsId)`
    `protected` | `ObjectIdInfo(PropertyName prop, Class<?> scope, Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen, boolean alwaysAsId, Class<? extends com.fasterxml.jackson.annotation.ObjectIdResolver> resolver)`
    `` | `ObjectIdInfo(PropertyName name, Class<?> scope, Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen, Class<? extends com.fasterxml.jackson.annotation.ObjectIdResolver> resolver)`
    `` | `ObjectIdInfo(String name, Class<?> scope, Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen)` Deprecated.

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `getAlwaysAsId()`
    `Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>>` | `getGeneratorType()`
    `PropertyName` | `getPropertyName()`
    `Class<? extends com.fasterxml.jackson.annotation.ObjectIdResolver>` | `getResolverType()`
    `Class<?>` | `getScope()`
    `String` | `toString()`
    `ObjectIdInfo` | `withAlwaysAsId(boolean state)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### _propertyName

          protected final PropertyName _propertyName

    - #### _generator

          protected final Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> _generator

    - #### _resolver

          protected final Class<? extends com.fasterxml.jackson.annotation.ObjectIdResolver> _resolver

    - #### _scope

          protected final Class<?> _scope

    - #### _alwaysAsId

          protected final boolean _alwaysAsId

  - ### Constructor Detail

    - #### ObjectIdInfo

          public ObjectIdInfo(PropertyName name,
                              Class<?> scope,
                              Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen,
                              Class<? extends com.fasterxml.jackson.annotation.ObjectIdResolver> resolver)

    - #### ObjectIdInfo

          @Deprecated
          public ObjectIdInfo(PropertyName name,
                                          Class<?> scope,
                                          Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen)

      Deprecated.

    - #### ObjectIdInfo

          @Deprecated
          public ObjectIdInfo(String name,
                                          Class<?> scope,
                                          Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen)

      Deprecated.

    - #### ObjectIdInfo

          protected ObjectIdInfo(PropertyName prop,
                                 Class<?> scope,
                                 Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen,
                                 boolean alwaysAsId)

    - #### ObjectIdInfo

          protected ObjectIdInfo(PropertyName prop,
                                 Class<?> scope,
                                 Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> gen,
                                 boolean alwaysAsId,
                                 Class<? extends com.fasterxml.jackson.annotation.ObjectIdResolver> resolver)

  - ### Method Detail

    - #### withAlwaysAsId

          public ObjectIdInfo withAlwaysAsId(boolean state)

    - #### getPropertyName

          public PropertyName getPropertyName()

    - #### getScope

          public Class<?> getScope()

    - #### getGeneratorType

          public Class<? extends com.fasterxml.jackson.annotation.ObjectIdGenerator<?>> getGeneratorType()

    - #### getResolverType

          public Class<? extends com.fasterxml.jackson.annotation.ObjectIdResolver> getResolverType()

    - #### getAlwaysAsId

          public boolean getAlwaysAsId()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2014–2015 FasterXML. All rights reserved.