Package reportgen.factory

Source Code of reportgen.factory.ReportVersion251_252

/*
* 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 ReportVersion251_252 extends ReportVersion {

    public ReportVersion251_252() {
        super(2, 5, 2);
    }

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

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

                {"(<entity [^>]*)alias(=\"[^\"]+\")", "$1atom$2", null},
                {"<entityref>([^<]+)</entityref>", "<entityref atom=\"$1\" />", null},
                {"(<subreport [^>]*id=\"([^\"]+)\")", "$1 atom=\"$2\"", null},
                {"(<input [^>]*seltitle=\"([^\"]+)\")(.*?)<inputref>\\2</inputref>",
                         "$1 atom=\"#int1#\"$3<inputref atom=\"#int1#\">$2</inputref>", null},

                       

                }
        );
    }
}
TOP

Related Classes of reportgen.factory.ReportVersion251_252

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.