Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5827 amar.kumar 1
/*
2
 *	Copyright 2005 stat4j.org
3
 *
4
 *   Licensed under the Apache License, Version 2.0 (the "License");
5
 *   you may not use this file except in compliance with the License.
6
 *	You may obtain a copy of the License at
7
 *
8
 *       http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 *   Unless required by applicable law or agreed to in writing, software
11
 *   distributed under the License is distributed on an "AS IS" BASIS,
12
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
15
 */
16
package net.sourceforge.stat4j;
17
 
18
import java.util.Properties;
19
 
20
/**
21
 * Name:		Filter.java
22
 * Date:		Aug 29, 2004
23
 * Description:
24
 * 
25
 * A filter encapculates a regular 
26
 * expression that may be 'matched' or
27
 * filtered from a log.
28
 * 
29
 * A filter may optionally specify a scrape expression
30
 * The scrape expression is used to scrap a value 
31
 * from the log message itself - use standard regular
32
 * expression groups. Group(1) will be the value string
33
 * extracted.
34
 *  
35
 * 
36
 * @author Lara D'Abreo
37
 */
38
public class Filter {
39
 
40
	public String	match;
41
	public String	scape;
42
 
43
	public void init(Properties properties) {
44
 
45
	}
46
	/**
47
	 * @return
48
	 */
49
	public String getMatch() {
50
		return match;
51
	}
52
 
53
	/**
54
	 * @return
55
	 */
56
	public String getScape() {
57
		return scape;
58
	}
59
 
60
	/**
61
	 * @param string
62
	 */
63
	public void setMatch(String string) {
64
		match = string;
65
	}
66
 
67
	/**
68
	 * @param string
69
	 */
70
	public void setScape(String string) {
71
		scape = string;
72
	}
73
 
74
}