Tabnine Logo
JsonDeserialize.keyAs
Code IndexAdd Tabnine to your IDE (free)

How to use
keyAs
method
in
org.codehaus.jackson.map.annotate.JsonDeserialize

Best Java code snippets using org.codehaus.jackson.map.annotate.JsonDeserialize.keyAs (Showing top 6 results out of 315)

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

@Override
public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType,
    String propName)
{
  // Primary annotation, JsonDeserialize
  JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class);
  if (ann != null) {
    Class<?> cls = ann.keyAs();
    if (cls != NoClass.class) {
      return cls;
    }
  }
  /* 30-Jun-2011, tatu: Here we used to have support for @JsonKeyClass;
   *    removed in 1.9
   */
  return null;
}
origin: camunda/camunda-bpm-platform

@Override
public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType,
    String propName)
{
  // Primary annotation, JsonDeserialize
  JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class);
  if (ann != null) {
    Class<?> cls = ann.keyAs();
    if (cls != NoClass.class) {
      return cls;
    }
  }
  /* 30-Jun-2011, tatu: Here we used to have support for @JsonKeyClass;
   *    removed in 1.9
   */
  return null;
}
origin: org.codehaus.jackson/jackson-mapper-lgpl

@Override
public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType,
    String propName)
{
  // Primary annotation, JsonDeserialize
  JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class);
  if (ann != null) {
    Class<?> cls = ann.keyAs();
    if (cls != NoClass.class) {
      return cls;
    }
  }
  /* 30-Jun-2011, tatu: Here we used to have support for @JsonKeyClass;
   *    removed in 1.9
   */
  return null;
}
origin: ovea-deprecated/jetty-session-redis

@Override
public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType,
    String propName)
{
  // Primary annotation, JsonDeserialize
  JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class);
  if (ann != null) {
    Class<?> cls = ann.keyAs();
    if (cls != NoClass.class) {
      return cls;
    }
  }
  /* 30-Jun-2011, tatu: Here we used to have support for @JsonKeyClass;
   *    removed in 1.9
   */
  return null;
}
origin: org.codehaus.jackson/com.springsource.org.codehaus.jackson.mapper

@SuppressWarnings("deprecation")
public Class<?> findDeserializationKeyType(Annotated am)
{
  // Primary annotation, JsonDeserialize
  JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class);
  if (ann != null) {
    Class<?> cls = ann.keyAs();
    if (cls != NoClass.class) {
      return cls;
    }
  }
  /* !!! 21-May-2009, tatu: JsonClass is deprecated; will need to
   *    drop support at a later point (for 2.0?)
   */
  JsonKeyClass oldAnn = am.getAnnotation(JsonKeyClass.class);
  if (oldAnn != null) {
    Class<?> cls = oldAnn.value();
    if(cls != NoClass.class) {
      return cls;
    }
  }
  return null;
}
origin: com.barchart.wrap/barchart-wrap-jackson

@Override
public Class<?> findDeserializationKeyType(Annotated am, JavaType baseKeyType,
    String propName)
{
  // Primary annotation, JsonDeserialize
  JsonDeserialize ann = am.getAnnotation(JsonDeserialize.class);
  if (ann != null) {
    Class<?> cls = ann.keyAs();
    if (cls != NoClass.class) {
      return cls;
    }
  }
  /* !!! 21-May-2009, tatu: JsonClass is deprecated; will need to
   *    drop support at a later point (for 2.0?)
   */
  @SuppressWarnings("deprecation")
  JsonKeyClass oldAnn = am.getAnnotation(JsonKeyClass.class);
  if (oldAnn != null) {
    @SuppressWarnings("deprecation")
    Class<?> cls = oldAnn.value();
    if(cls != NoClass.class) {
      return cls;
    }
  }
  return null;
}
org.codehaus.jackson.map.annotateJsonDeserializekeyAs

Popular methods of JsonDeserialize

  • <init>
  • as
  • contentAs
  • contentUsing
  • keyUsing
  • using

Popular in Java

  • Reactive rest calls using spring rest template
  • addToBackStack (FragmentTransaction)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JTextField (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Best IntelliJ 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