Package org.jsondoc.core.annotation

Examples of org.jsondoc.core.annotation.ApiObject


 
  public static Set<ApiObjectDoc> getApiObjectDocs(Set<Class<?>> classes) {
    Set<ApiObjectDoc> pojoDocs = new TreeSet<ApiObjectDoc>();
    for (Class<?> pojo : classes) {
      log.debug("Getting JSONDoc for class: " + pojo.getName());
      ApiObject annotation = pojo.getAnnotation(ApiObject.class);
      ApiObjectDoc pojoDoc = ApiObjectDoc.buildFromAnnotation(annotation, pojo);
      if(pojo.isAnnotationPresent(ApiVersion.class)) {
        pojoDoc.setSupportedversions(ApiVersionDoc.buildFromAnnotation(pojo.getAnnotation(ApiVersion.class)));
      }
     
      if(annotation.show()) {
        pojoDocs.add(pojoDoc);
      }
    }
    return pojoDocs;
  }
View Full Code Here

TOP

Related Classes of org.jsondoc.core.annotation.ApiObject

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.