Class FeatureAnnotations


  • public class FeatureAnnotations
    extends Object
    Utility class to read annotation on feature enums.
    Author:
    Christian Kaltepoth, Eli Abramovitch
    • Constructor Detail

      • FeatureAnnotations

        public FeatureAnnotations()
    • Method Detail

      • isEnabledByDefault

        public static boolean isEnabledByDefault​(Feature feature)
      • isAnnotationPresent

        public static boolean isAnnotationPresent​(Feature feature,
                                                  Class<? extends Annotation> annotationType)
      • getAnnotation

        public static <A extends Annotation> A getAnnotation​(Feature feature,
                                                             Class<A> annotationType)
      • getFeatureAttribute

        public static String[] getFeatureAttribute​(Annotation annotation)
        Checks whether the supplied annotation specifies a feature attribute. If so, it returns an String array containing the name of the attribute at the first and the value at the second position. Returns null if no attribute was found.