@Retention(value=RUNTIME) @Target(value=TYPE) public @interface RequiredMeasures
Annotation used to specify which measures should be available on a snapshot to be able to display a view (page, tab, ...). It is possible to give a list of mandatory measures (= if one is not available, the view is not displayed) and/or a list of needed measures (only one of them needs to be available). The measures are specified using the metric keys.
Example: the DesignPage absolutely requires the "dsm" measure to be fed in order to be displayed, whatever the language.
The class will define a @RequiredMeasures(allOf={"dsm"})
annotation.
Copyright © 2009-2013 SonarSource. All Rights Reserved.