Package net.sf.basedb.clients.web
Class AnnotationUtil
java.lang.Object
net.sf.basedb.clients.web.AnnotationUtil
Some utility functions for annotations.
- Since:
- 3.5
- Author:
- nicklas
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static void
createJSON
(org.json.simple.JSONObject json, DbControl dc, Annotation a, Formatter<Object> formatter, boolean formatAll) static org.json.simple.JSONObject
createJsonForAnnotationTypeAndAnnotation
(DbControl dc, AnnotationType at, Annotation a, Annotation inherited, boolean isProtocolParameter, Set<AnnotationTypeCategory> allCategories) static org.json.simple.JSONObject
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.
-
Constructor Details
-
AnnotationUtil
public AnnotationUtil()
-
-
Method Details
-
loadJsonForBatchInherit
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)
-