Package reportgen.factory

Source Code of reportgen.factory.ReportVersion253_254

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

    public ReportVersion253_254() {
        super(2, 5, 4);
    }

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

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

                {"<unarycond>(.*?)<operator>is not null</operator>(.*?)</unarycond>",
                         "<unarynull>$1<operator>is not null</operator>$2</unarynull>", null},
                {"<unarycond>(.*?)<operator>is null</operator>(.*?)</unarycond>",
                         "<unarynull>$1<operator>is null</operator>$2</unarynull>", null},
                {"<unarycond>(.*?)<operator>NOT EXISTS</operator>(.*?)</unarycond>",
                         "<unaryexist>$1<operator>not exists</operator>$2</unaryexist>", null},
                {"<unarycond>(.*?)<operator>EXISTS</operator>(.*?)</unarycond>",
                         "<unaryexist>$1<operator>exists</operator>$2</unaryexist>", null},                }
        );
    }
}
TOP

Related Classes of reportgen.factory.ReportVersion253_254

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.