Package reportgen.factory

Source Code of reportgen.factory.ReportVersion252_253

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package reportgen.factory;

import reportgen.factory.patch.ReportPatch;
import reportgen.factory.patch.regex.RegexReportPatch;

/**
*
* @author axe
*/
final class ReportVersion252_253 extends ReportVersion {

    public ReportVersion252_253() {
        super(2, 5, 3);
    }

    @Override
    public ReportVersion realVersion() {
        return new ReportVersion(2, 5, 2);
    }

    @Override
    public ReportPatch getPatch() {
        return new RegexReportPatch(
            new Object[][] {
                {"version=\"2.5.2\"", "version=\"2.5.3\"", null},

                {"<property>([0-9]+\\.get[A-Z].*?)</property>", "<method value=\"$1\" />", null},
                {"<property>([0-9]+\\.is[A-Z].*?)</property>", "<method value=\"$1\" />", null},
                {"<property>(.*?)</property>", "<field value=\"$1\" />", null},
                }
        );
    }
}
TOP

Related Classes of reportgen.factory.ReportVersion252_253

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.