@@ -0,0 +1,2714 @@
+/*%0A * Tanaguru - Automated webpage assessment%0A * Copyright (C) 2008-2017  Tanaguru.org%0A *%0A * This program is free software: you can redistribute it and/or modify%0A * it under the terms of the GNU Affero General Public License as%0A * published by the Free Software Foundation, either version 3 of the%0A * License, or (at your option) any later version.%0A *%0A * This program is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A * GNU Affero General Public License for more details.%0A *%0A * You should have received a copy of the GNU Affero General Public License%0A * along with this program.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A *%0A * Contact us by mail: tanaguru AT tanaguru DOT org%0A */%0A%0Apackage org.tanaguru.rules.rgaa32017;%0A%0Aimport org.tanaguru.entity.audit.TestSolution;%0Aimport org.tanaguru.ruleimplementation.link.AbstractDownloadableLinkRuleImplementation;%0Aimport org.tanaguru.rules.elementchecker.text.TextEndsWithChecker;%0Aimport static org.tanaguru.rules.keystore.AttributeStore.HREF_ATTR;%0Aimport static org.tanaguru.rules.keystore.AttributeStore.TITLE_ATTR;%0Aimport static org.tanaguru.rules.keystore.RemarkMessageStore.DOWNLOADABLE_FILE_DETECTED_CHECK_WEIGHT_MSG;%0Aimport org.tanaguru.rules.textbuilder.TextAttributeOfElementBuilder;%0A%0A/**%0A * Implementation of the rule 13.6.2 of the referential Rgaa 3-2017.%0A * %3Cbr/%3E%0A * For more details about the implementation, refer to %3Ca href=%22http://tanaguru-rules-rgaa3.readthedocs.org/en/latest/Rule-13-6-2%22%3Ethe rule 13.6.2 design page.%3C/a%3E%0A * @see %3Ca href=%22http://references.modernisation.gouv.fr/referentiel-technique-0#test-13-6-2%22%3E 13.6.2 rule specification%3C/a%3E%0A *%0A * @author jkowalczyk%0A */%0A%0Apublic class Rgaa32017Rule130602 extends AbstractDownloadableLinkRuleImplementation %7B%0A%0A    /* the browser readable extensions nomenclature */%0A    private static final String OFFICE_DOC_EXT_NOM = %22DownloadableDocumentExtensions%22;%0A%0A    /**%0A     * Default constructor%0A     */%0A    public Rgaa32017Rule130602 () %7B%0A        super(%0A                new TextEndsWithChecker(%0A                    // the href attribute is tested%0A                    new TextAttributeOfElementBuilder(HREF_ATTR), %0A                    // the nomenclature listing the extensions to test%0A                    OFFICE_DOC_EXT_NOM, %0A                    // the result when detected%0A                    TestSolution.NEED_MORE_INFO, %0A                    // the message when detected%0A                    DOWNLOADABLE_FILE_DETECTED_CHECK_WEIGHT_MSG, %0A                    // the evidence elements%0A                    HREF_ATTR, %0A                    TITLE_ATTR)%0A            );%0A    %7D%0A%0A%7D%0A

Add implementation rule Rgaa32017Rule130602