Tabnine Logo
JsonProperty
Code IndexAdd Tabnine to your IDE (free)

How to use
JsonProperty
in
com.owlike.genson.annotation

Best Java code snippets using com.owlike.genson.annotation.JsonProperty (Showing top 12 results out of 315)

origin: owlike/genson

 protected boolean mustInclude(AccessibleObject property, boolean forSerialization) {
  JsonProperty prop = property.getAnnotation(JsonProperty.class);
  if (prop != null) {
   if (forSerialization)
    return prop.serialize();
   else
    return prop.deserialize();
  }
  return false;
 }
}
origin: com.owlike/genson

 protected String getName(AnnotatedElement annElement) {
  JsonProperty name = annElement.getAnnotation(JsonProperty.class);
  return name != null && name.value() != null && !name.value().isEmpty() ? name.value()
   : null;
 }
}
origin: com.owlike/genson

public String[] aliases() {
 JsonProperty ann = getAnnotation(JsonProperty.class);
 return ann != null ? ann.aliases() : new String[]{};
}
origin: mike-neck/javajo-gradle

@JsonProperty("translated_text")
private String translatedText;
origin: owlike/genson

public String[] aliases() {
 JsonProperty ann = getAnnotation(JsonProperty.class);
 return ann != null ? ann.aliases() : new String[]{};
}
origin: mike-neck/javajo-gradle

@JsonProperty("translated_text")
private String translatedText;
origin: com.owlike/genson

 protected boolean mustInclude(AccessibleObject property, boolean forSerialization) {
  JsonProperty prop = property.getAnnotation(JsonProperty.class);
  if (prop != null) {
   if (forSerialization)
    return prop.serialize();
   else
    return prop.deserialize();
  }
  return false;
 }
}
origin: owlike/genson

 protected String getName(AnnotatedElement annElement) {
  JsonProperty name = annElement.getAnnotation(JsonProperty.class);
  return name != null && name.value() != null && !name.value().isEmpty() ? name.value()
   : null;
 }
}
origin: com.owlike/genson

public String resolve(int parameterIdx, Constructor<?> fromConstructor) {
 Annotation[] paramAnns = fromConstructor.getParameterAnnotations()[parameterIdx];
 String name = null;
 for (int j = 0; j < paramAnns.length; j++) {
  if (paramAnns[j] instanceof JsonProperty) {
   name = ((JsonProperty) paramAnns[j]).value();
   break;
  }
 }
 return "".equals(name) ? null : name;
}
origin: owlike/genson

public String resolve(int parameterIdx, Constructor<?> fromConstructor) {
 Annotation[] paramAnns = fromConstructor.getParameterAnnotations()[parameterIdx];
 String name = null;
 for (int j = 0; j < paramAnns.length; j++) {
  if (paramAnns[j] instanceof JsonProperty) {
   name = ((JsonProperty) paramAnns[j]).value();
   break;
  }
 }
 return "".equals(name) ? null : name;
}
origin: owlike/genson

public String resolve(int parameterIdx, Method fromMethod) {
 Annotation[] anns = fromMethod.getParameterAnnotations()[parameterIdx];
 String name = null;
 for (Annotation ann : anns) {
  if (ann instanceof JsonProperty) {
   name = ((JsonProperty) ann).value();
   break;
  }
 }
 return "".equals(name) ? null : name;
}
origin: com.owlike/genson

public String resolve(int parameterIdx, Method fromMethod) {
 Annotation[] anns = fromMethod.getParameterAnnotations()[parameterIdx];
 String name = null;
 for (Annotation ann : anns) {
  if (ann instanceof JsonProperty) {
   name = ((JsonProperty) ann).value();
   break;
  }
 }
 return "".equals(name) ? null : name;
}
com.owlike.genson.annotationJsonProperty

Most used methods

  • <init>
  • aliases
  • deserialize
  • serialize
  • value

Popular in Java

  • Parsing JSON documents to java classes using gson
  • addToBackStack (FragmentTransaction)
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top Sublime Text 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