Package org.codehaus.enunciate.json

Examples of org.codehaus.enunciate.json.JsonName


    return true;
  }

  @Override
  public String getJsonMemberName() {
    JsonName jsonName = getAnnotation(JsonName.class);
    return jsonName == null ? (isElementRefs() ? getSimpleName() : getName()) : jsonName.value();
  }
View Full Code Here


    return true;
  }

  @Override
  public String getJsonMemberName() {
    JsonName jsonName = getAnnotation(JsonName.class);
    return jsonName == null ? "value" : jsonName.value();
  }
View Full Code Here

    return false;
  }

  @Override
  public String getJsonMemberName() {
    JsonName jsonName = getAnnotation(JsonName.class);
    return jsonName == null ? (isWrapped() ? getWrapperName() : getName()) : jsonName.value();
  }
View Full Code Here

    return true;
  }

  @Override
  public String getJsonMemberName() {
    JsonName jsonName = getAnnotation(JsonName.class);
    return jsonName == null ? getName() : jsonName.value();
  }
View Full Code Here

  /**
   * @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

    /**
     * @return The name.
     */
    public String getPropertyName() {
      JsonName jsonName = getAnnotation(JsonName.class);
      return jsonName == null ? super.getPropertyName() : jsonName.value();
    }
View Full Code Here

TOP

Related Classes of org.codehaus.enunciate.json.JsonName

Copyright © 2018 www.massapicom. 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.