Class Extractor

  • Direct Known Subclasses:
    FieldExtractor

    public class Extractor
    extends java.lang.Object
    The object contains 'ExtractBy' information.
    Since:
    0.2.0
    Author:
    code4crafter@gmail.com
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean multi  
      protected boolean notNull  
      protected us.codecraft.webmagic.selector.Selector selector  
      protected Source source  
    • Constructor Summary

      Constructors 
      Constructor Description
      Extractor​(us.codecraft.webmagic.selector.Selector selector, Source source, boolean notNull, boolean multi)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isMulti()  
      boolean isNotNull()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • selector

        protected us.codecraft.webmagic.selector.Selector selector
      • source

        protected final Source source
      • notNull

        protected final boolean notNull
      • multi

        protected final boolean multi
    • Constructor Detail

      • Extractor

        public Extractor​(us.codecraft.webmagic.selector.Selector selector,
                         Source source,
                         boolean notNull,
                         boolean multi)
    • Method Detail

      • isNotNull

        public boolean isNotNull()
      • isMulti

        public boolean isMulti()