us.codecraft.webmagic.model.FieldExtractor Maven / Gradle / Ivy
The newest version!
package us.codecraft.webmagic.model;
import us.codecraft.webmagic.model.formatter.ObjectFormatter;
import us.codecraft.webmagic.model.sources.Source;
import us.codecraft.webmagic.selector.Selector;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import lombok.Getter;
import lombok.Setter;
/**
* Wrapper of field and extractor.
* @author [email protected]
* @since 0.2.0
*/
public class FieldExtractor extends Extractor {
@Getter
private final Field field;
@Getter @Setter
private Method setterMethod;
@Getter @Setter
private ObjectFormatter objectFormatter;
public FieldExtractor(Field field, Selector selector, Source source, boolean notNull, boolean multi) {
super(selector, source, notNull, multi);
this.field = field;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy