View Javadoc
1   package us.codecraft.webmagic.model;
2   
3   import us.codecraft.webmagic.utils.Experimental;
4   
5   /**
6    * Interface to be implemented by page mode.<br>
7    * Can be used to identify a page model, or be used as name of file storing the object.<br>
8    * @author code4crafter@gmail.com <br>
9    * @since 0.2.0
10   */
11  @Experimental
12  public interface HasKey {
13  
14      /**
15       *
16       *
17       * @return key
18       */
19      public String key();
20  }