DecisionStep.java
上传用户:qing5858
上传日期:2015-10-27
资源大小:6056k
文件大小:1k
源码类别:

搜索引擎

开发平台:

Java

  1. package net.javacoding.jspider.api.model;
  2. /**
  3.  * Interface to be implemented upon classes that will represent a
  4.  * DesisionStep, a step in the process of the decision taking on a
  5.  * resource URL whether it should be spidered and/or parsed.
  6.  *
  7.  * $Id: DecisionStep.java,v 1.2 2003/04/04 20:06:02 vanrogu Exp $
  8.  *
  9.  * @author G黱ther Van Roey.
  10.  */
  11. public interface DecisionStep {
  12.     /**
  13.      * Determines whether it is a GENERAL rule or SITE local rule.
  14.      * @return the type of the rule that took the decision
  15.      */
  16.     public int getRuleType ( );
  17.     /**
  18.      * Returns the name of the rule that took this decision step
  19.      * @return the name of the rule that took this decision step
  20.      */
  21.     public String getRule ( );
  22.     /**
  23.      * The decision that was taken by the rule (DONTCARE, ACCEPT, IGNORE, FORBIDDEN)
  24.      * @return the decision taken by the rule
  25.      */
  26.     public int getDecision ( );
  27.     /**
  28.      * Returns any comment or explanation given by the rule about it's explanation
  29.      * @return comment on the decisionstep
  30.      */
  31.     public String getComment ( );
  32. }