01: /*
02: * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
03: * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
04: */
05:
06: package com.sun.portal.search.robot;
07:
08: import java.util.*;
09: import java.net.*;
10:
11: class RuleSet {
12: public String rule_id;
13: public boolean onMatch;
14:
15: public RuleSet(String id, boolean onmatch) {
16: rule_id = id;
17: onMatch = onmatch;
18: }
19:
20: public String toXMLString() {
21: return "<Rule id=\"" + rule_id + "\" onMatch=\""
22: + RobotConfig.ADtoString(onMatch) + "\"/>\n";
23: }
24:
25: public String toConfigString() {
26: return "Rule id=" + rule_id + " onMatch="
27: + RobotConfig.ADtoString(onMatch) + "\n";
28: }
29: }
|