Examples of JsonName


Examples of org.codehaus.enunciate.json.JsonName

  /**
   * @param delegate Type declaration to get a JSON type name for (must not be null).
   * @return JSON type name for the given declaration.
   */
  public static String getTypeName(final TypeDeclaration delegate) {
    JsonName jsonName = delegate.getAnnotation(JsonName.class);
    return jsonName == null ? delegate.getSimpleName() : jsonName.value();
  }
View Full Code Here

Examples of org.codehaus.enunciate.json.JsonName

    /**
     * @return The name.
     */
    public String getPropertyName() {
      JsonName jsonName = getAnnotation(JsonName.class);
      return jsonName == null ? super.getPropertyName() : jsonName.value();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.