KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > javacoding > jspider > core > model > DecisionStepInternal


1 package net.javacoding.jspider.core.model;
2
3 import net.javacoding.jspider.api.model.DecisionStep;
4 import net.javacoding.jspider.core.rule.impl.RuleSetImpl;
5
6 /**
7  * $Id: DecisionStepInternal.java,v 1.3 2003/04/04 20:06:06 vanrogu Exp $
8  */

9 public class DecisionStepInternal implements DecisionStep {
10
11     protected int ruleType;
12     protected int decision;
13     protected String JavaDoc comment;
14     protected String JavaDoc rule;
15
16     public DecisionStepInternal ( String JavaDoc rule, int ruleType, int decision, String JavaDoc comment) {
17         this.rule = rule;
18         this.ruleType = ruleType;
19         this.decision = decision;
20         this.comment = comment;
21     }
22
23     public String JavaDoc getRule ( ) {
24         return rule;
25     }
26
27     public int getRuleType() {
28         return ruleType;
29     }
30
31     public int getDecision() {
32         return decision;
33     }
34
35     public String JavaDoc getComment() {
36         return comment;
37     }
38
39     public String JavaDoc toString ( ) {
40         return "[DecisionStep] " + RuleSetImpl.translate(ruleType) + " rule " + rule + " - " + DecisionInternal.translate(decision) + " - " + comment;
41     }
42
43 }
44
Popular Tags