Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2308 mtayler 1
/*
2
 * Created on 7/04/2005
3
 */
4
package DMS;
5
 
6
import org.w3c.dom.Node;
7
 
8
/**
9
 * @author mtayler
10
 */
11
public class highlightStyleItem {
12
 
13
	private String FFieldName;
14
	private String FFieldValue;
15
	private String FFieldOperation;
16
 
17
 
18
	public highlightStyleItem(Node root) {
19
		FFieldName = XMLParser.findNodeValue(root,"field-name").trim().toLowerCase();
20
		FFieldValue = XMLParser.findNodeValue(root,"field-value");
21
		FFieldOperation = XMLParser.findNodeValue(root,"field-operation").trim().toLowerCase();		
22
		if (FFieldOperation.equals("")) FFieldOperation="equal";
23
	}
24
 
25
	/**
26
	 * @return Returns the fFieldName.
27
	 */
28
	public String getFieldName() {
29
		return FFieldName;
30
	}
31
	/**
32
	 * @return Returns the fFieldValue.
33
	 */
34
	public String getFieldValue() {
35
		return FFieldValue;
36
	}
37
 
38
	/**
39
	 * @return Returns the fFieldOperation.
40
	 */
41
	public String getFieldOperation() {
42
		return FFieldOperation;
43
	}
44
 
45
	public boolean isEqual() { //default operation
46
		return FFieldOperation.equals("") || FFieldOperation.equals("equal") || FFieldOperation.equals("=");
47
	}
48
 
49
	public boolean isNotEqual() {
50
		return FFieldOperation.equals("not equal") || FFieldOperation.equals("<>") || FFieldOperation.equals("!=");
51
	}	
52
}