*/
public interface Decorator extends BatchExtension, CheckProject {
+ /**
+ * @param resource resource that is currently decorated, equivalent of <code>context.getResource()</code>
+ */
void decorate(Resource resource, DecoratorContext context);
}
public abstract void setSource(Resource reference, String source) throws DuplicatedSourceException;
/**
+ * @return source code associated with a specified resource, <code>null</code> if not available
* @since 2.9
*/
public abstract String getSource(Resource resource);
/**
* Returns the violations that match the {@link ViolationQuery} parameters.
- *
+ *
* @since 2.8
* @param violationQuery
* the request parameters specified as a {@link ViolationQuery}
* Returns all the active (= non switched-off) violations found on the given resource. Equivalent to
* {@link #getViolations(ViolationQuery)} called with <code>ViolationQuery.create().forResource(resource).ignoreSwitchedOff(true)</code>
* as a parameter.
- *
+ *
* @since 2.7
* @return the list of violations
*/