All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ru.yandex.qatools.camelot.beans.RouteConfigImpl Maven / Gradle / Ivy

There is a newer version: 2.5.4
Show newest version
package ru.yandex.qatools.camelot.beans;

import ru.yandex.qatools.camelot.api.CustomFilter;
import ru.yandex.qatools.camelot.common.SplitStrategy;

import static java.util.Arrays.copyOf;

/**
 * @author Ilya Sadykov (mailto: [email protected])
 */
public class RouteConfigImpl implements RouteConfig {
    private SplitStrategy splitStrategy = null;
    private Class[] filterInstanceOf = null;
    private Class customFilter = null;

    @Override
    public Class[] getFilterInstanceOf() {
        return filterInstanceOf;
    }

    @Override
    public Class getCustomFilter() {
        return customFilter;
    }

    @Override
    public SplitStrategy getSplitStrategy() {
        return splitStrategy;
    }

    public void setSplitStrategy(SplitStrategy splitStrategy) {
        this.splitStrategy = splitStrategy;
    }

    public void setFilterInstanceOf(Class[] filterClass) {
        this.filterInstanceOf = (filterClass != null) ? copyOf(filterClass, filterClass.length) : new Class[0];
    }

    public void setCustomFilter(Class customFilter) {
        this.customFilter = customFilter;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy