Class AnnotationUtil

java.lang.Object
net.sf.basedb.clients.web.AnnotationUtil

public class AnnotationUtil extends Object
Some utility functions for annotations.
Since:
3.5
Author:
nicklas
  • Constructor Details

    • AnnotationUtil

      public AnnotationUtil()
  • Method Details

    • loadJsonForBatchInherit

      public static org.json.simple.JSONObject loadJsonForBatchInherit(DbControl dc, AnnotationType at)
      Load information about categories and subtypes of an annotation type that are useful for deciding about inheriting annotations from parent items, The result is returned as a JSON object intended to be used by the "Batch inherit annotations" feature in the web interface. See: common/annotations/batch_inherit.jsp (and .js)
    • createJsonForAnnotationTypeAndAnnotation

      public static org.json.simple.JSONObject createJsonForAnnotationTypeAndAnnotation(DbControl dc, AnnotationType at, Annotation a, Annotation inherited, boolean isProtocolParameter, Set<AnnotationTypeCategory> allCategories)
    • createJSON

      static void createJSON(org.json.simple.JSONObject json, DbControl dc, Annotation a, Formatter<Object> formatter, boolean formatAll)