Package org.togglz.core.util
Class FeatureAnnotations
java.lang.Object
org.togglz.core.util.FeatureAnnotations
Utility class to read annotation on feature enums.
- Author:
- Christian Kaltepoth, Eli Abramovitch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A extends Annotation>
AgetAnnotation
(Feature feature, Class<A> annotationType) static Set<Annotation>
getAnnotations
(Feature feature) static String[]
getFeatureAttribute
(Annotation annotation) Checks whether the supplied annotation specifies a feature attribute.static String
static boolean
isAnnotationPresent
(Feature feature, Class<? extends Annotation> annotationType) static boolean
isEnabledByDefault
(Feature feature)
-
Constructor Details
-
FeatureAnnotations
public FeatureAnnotations()
-
-
Method Details
-
getLabel
-
isEnabledByDefault
-
isAnnotationPresent
public static boolean isAnnotationPresent(Feature feature, Class<? extends Annotation> annotationType) -
getAnnotations
-
getAnnotation
-
getFeatureAttribute
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. Returnsnull
if no attribute was found.
-