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

cn.ideabuffer.process.api.model.processor.ProcessorModel Maven / Gradle / Ivy

There is a newer version: 1.1.16
Show newest version
package cn.ideabuffer.process.api.model.processor;

import cn.ideabuffer.process.api.model.Model;
import cn.ideabuffer.process.core.Processor;
import cn.ideabuffer.process.core.processors.ComplexProcessor;
import org.jetbrains.annotations.NotNull;

/**
 * @author sangjian.sj
 * @date 2020/06/20
 */
public class ProcessorModel extends Model {

    private static final long serialVersionUID = 2924440843573465231L;

    private boolean complex;

    public ProcessorModel(@NotNull R processor) {
        super(processor);
    }

    public boolean isComplex() {
        return complex;
    }

    public void setComplex(boolean complex) {
        this.complex = complex;
    }

    @Override
    protected void init() {
        super.init();
        this.complex = resource instanceof ComplexProcessor;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy