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

us.codecraft.webmagic.model.Extractor Maven / Gradle / Ivy

There is a newer version: 1.0.1
Show newest version
package us.codecraft.webmagic.model;

import lombok.Getter;
import lombok.Setter;

import us.codecraft.webmagic.model.sources.Source;
import us.codecraft.webmagic.selector.Selector;

/**
 * The object contains 'ExtractBy' information.
 * @author [email protected] 
* @since 0.2.0 */ public class Extractor { @Getter @Setter protected Selector selector; @Getter protected final Source source; protected final boolean notNull; protected final boolean multi; public Extractor(Selector selector, Source source, boolean notNull, boolean multi) { this.selector = selector; this.source = source; this.notNull = notNull; this.multi = multi; } public boolean isNotNull() { return notNull; } public boolean isMulti() { return multi; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy