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 Stringstatic booleanisAnnotationPresent(Feature feature, Class<? extends Annotation> annotationType) static booleanisEnabledByDefault(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. Returnsnullif no attribute was found.
-