Package annotation

Class CentralAnnotationsList

java.lang.Object
annotation.CentralAnnotationsList

public class CentralAnnotationsList extends Object
Singleton centralised annotations types list.
Author:
Doug Gillespie
  • Constructor Details

    • CentralAnnotationsList

      public CentralAnnotationsList()
  • Method Details

    • getList

      public static AnnotationList getList()
      Returns:
      centralised annotations list.
    • addAnnotationType

      public static boolean addAnnotationType(DataAnnotationType<?> annotationType)
      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

      public static DataAnnotationType<?> findTypeFromCode(String code)
      Convenience method to get a type more easily.
      Parameters:
      code - 4 character code identifying the annotation
      Returns:
      DataannotationType or null
    • getDummyAnnotationType

      public static DummyAnnotationType getDummyAnnotationType()
      Returns:
      the dummyAnnotationType