Package annotation
Class CentralAnnotationsList
java.lang.Object
annotation.CentralAnnotationsList
Singleton centralised annotations types list.
- Author:
- Doug Gillespie
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addAnnotationType
(DataAnnotationType<?> annotationType) convenience wrapper round underlying singleton functions.static DataAnnotationType<?>
findTypeFromCode
(String code) Convenience method to get a type more easily.static DummyAnnotationType
static AnnotationList
getList()
-
Constructor Details
-
CentralAnnotationsList
public CentralAnnotationsList()
-
-
Method Details
-
getList
- Returns:
- centralised annotations list.
-
addAnnotationType
convenience wrapper round underlying singleton functions. Add a data annotation type to the list- Parameters:
annotationType
- annotation type- Returns:
- true unless there was a code conflict.
-
findTypeFromCode
Convenience method to get a type more easily.- Parameters:
code
- 4 character code identifying the annotation- Returns:
- DataannotationType or null
-
getDummyAnnotationType
- Returns:
- the dummyAnnotationType
-