cn.ideabuffer.process.api.model.processor.ProcessorModel Maven / Gradle / Ivy
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;
}
}