/*
 * Copyright 2003-2012 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package me.champeau.gradle.japicmp;

import me.champeau.gradle.japicmp.filters.FilterConfiguration;
import me.champeau.gradle.japicmp.report.RichReport;

import java.io.File;
import java.io.Serializable;
import java.util.List;

public class JapiCmpWorkerConfiguration implements Serializable {
    protected final boolean includeSynthetic;
    protected final boolean ignoreMissingClasses;
    protected final List<String> packageIncludes;
    protected final List<String> packageExcludes;
    protected final List<String> classIncludes;
    protected final List<String> classExcludes;
    protected final List<String> methodIncludes;
    protected final List<String> methodExcludes;
    protected final List<String> fieldIncludes;
    protected final List<String> fieldExcludes;
    protected final List<String> annotationIncludes;
    protected final List<String> annotationExcludes;
    protected final List<FilterConfiguration> includeFilters;
    protected final List<FilterConfiguration> excludeFilters;
    protected final List<String> compatibilityChangeExcludes;
    protected final List<JApiCmpWorkerAction.Archive> oldClasspath;
    protected final List<JApiCmpWorkerAction.Archive> newClasspath;
    protected final List<JApiCmpWorkerAction.Archive> oldArchives;
    protected final List<JApiCmpWorkerAction.Archive> newArchives;
    protected final boolean onlyModified;
    protected final boolean onlyBinaryIncompatibleModified;
    protected final boolean reportOnlySummary;
    protected final boolean failOnSourceIncompatibility;
    protected final String accessModifier;
    protected final File xmlOutputFile;
    protected final File htmlOutputFile;
    protected final File mdOutputFile;
    protected final File txtOutputFile;
    protected final File semverOutputFile;
    protected final boolean failOnModification;
    protected final RichReport.Configuration richReport;

    public JapiCmpWorkerConfiguration(final boolean includeSynthetic,
                                      final boolean ignoreMissingClasses,
                                      final List<String> packageIncludes,
                                      final List<String> packageExcludes,
                                      final List<String> classIncludes,
                                      final List<String> classExcludes,
                                      final List<String> methodIncludes,
                                      final List<String> methodExcludes,
                                      final List<String> fieldIncludes,
                                      final List<String> fieldExcludes,
                                      final List<String> annotationIncludes,
                                      final List<String> annotationExcludes,
                                      final List<FilterConfiguration> includeFilters,
                                      final List<FilterConfiguration> excludeFilters,
                                      final List<String> compatibilityChangeExcludes,
                                      final List<JApiCmpWorkerAction.Archive> oldClasspath,
                                      final List<JApiCmpWorkerAction.Archive> newClasspath,
                                      final List<JApiCmpWorkerAction.Archive> oldArchives,
                                      final List<JApiCmpWorkerAction.Archive> newArchives,
                                      final boolean onlyModified,
                                      final boolean onlyBinaryIncompatibleModified,
                                      final boolean reportOnlySummary,
                                      final boolean failOnSourceIncompatibility,
                                      final String accessModifier,
                                      final File xmlOutputFile,
                                      final File htmlOutputFile,
                                      final File mdOutputFile,
                                      final File txtOutputFile,
                                      final File semverOutputFile,
                                      final boolean failOnModification,
                                      final RichReport.Configuration richReport) {
        this.includeSynthetic = includeSynthetic;
        this.ignoreMissingClasses = ignoreMissingClasses;
        this.packageIncludes = packageIncludes;
        this.packageExcludes = packageExcludes;
        this.classIncludes = classIncludes;
        this.classExcludes = classExcludes;
        this.methodIncludes = methodIncludes;
        this.methodExcludes = methodExcludes;
        this.fieldIncludes = fieldIncludes;
        this.fieldExcludes = fieldExcludes;
        this.annotationIncludes = annotationIncludes;
        this.annotationExcludes = annotationExcludes;
        this.compatibilityChangeExcludes = compatibilityChangeExcludes;
        this.includeFilters = includeFilters;
        this.excludeFilters = excludeFilters;
        this.oldClasspath = oldClasspath;
        this.newClasspath = newClasspath;
        this.oldArchives = oldArchives;
        this.newArchives = newArchives;
        this.onlyModified = onlyModified;
        this.onlyBinaryIncompatibleModified = onlyBinaryIncompatibleModified;
        this.reportOnlySummary = reportOnlySummary;
        this.failOnSourceIncompatibility = failOnSourceIncompatibility;
        this.accessModifier = accessModifier;
        this.xmlOutputFile = xmlOutputFile;
        this.htmlOutputFile = htmlOutputFile;
        this.mdOutputFile = mdOutputFile;
        this.txtOutputFile = txtOutputFile;
        this.semverOutputFile = semverOutputFile;
        this.failOnModification = failOnModification | failOnSourceIncompatibility;
        this.richReport = richReport;
    }

}
