01: package com.rimfaxe.xml.xmlreader.xpath;
02:
03: /**
04: * Compare text value.
05: *
06: <blockquote><small> Copyright (C) 2002 Hewlett-Packard Company.
07: This file is part of Sparta, an XML Parser, DOM, and XPath library.
08: This library is free software; you can redistribute it and/or
09: modify it under the terms of the <a href="doc-files/LGPL.txt">GNU
10: Lesser General Public License</a> as published by the Free Software
11: Foundation; either version 2.1 of the License, or (at your option)
12: any later version. This library is distributed in the hope that it
13: will be useful, but WITHOUT ANY WARRANTY; without even the implied
14: warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15: PURPOSE. </small></blockquote>
16: @version $Date: 2002/12/06 23:41:49 $ $Revision: 1.2 $
17: @author Eamonn O'Brien-Strain
18: */
19: public abstract class TextCompareExpr extends BooleanExpr {
20: TextCompareExpr(String value) {
21: value_ = value;
22: }
23:
24: public String getValue() {
25: return value_;
26: }
27:
28: protected String toString(String op) {
29: return "[text()" + op + "\'" + value_ + "\']";
30: }
31:
32: private final String value_;
33:
34: }
35:
36: // $Log: TextCompareExpr.java,v $
37: // Revision 1.2 2002/12/06 23:41:49 eobrain
38: // Add toString() which returns the original XPath.
39: //
40: // Revision 1.1 2002/10/30 16:17:59 eobrain
41: // initial
42: //
|