public class AnnotationUtil extends Object
Constructor and Description |
---|
AnnotationUtil() |
Modifier and Type | Method and Description |
---|---|
(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 |
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.
|
public static org.json.simple.JSONObject loadJsonForBatchInherit(DbControl dc, AnnotationType at)
public static org.json.simple.JSONObject createJsonForAnnotationTypeAndAnnotation(DbControl dc, AnnotationType at, Annotation a, Annotation inherited, boolean isProtocolParameter, Set<AnnotationTypeCategory> allCategories)
static void createJSON(org.json.simple.JSONObject json, DbControl dc, Annotation a, Formatter<Object> formatter, boolean formatAll)