01: package com.rimfaxe.xml.xmlreader.xpath;
02:
03: /**
04: * [text()='value'] expression
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/13 22:42:22 $ $Revision: 1.6 $
17: @author Eamonn O'Brien-Strain
18: */
19: public class TextEqualsExpr extends TextCompareExpr {
20: TextEqualsExpr(String value) {
21: super (value);
22: }
23:
24: /**
25: * @see com.hp.hpl.sparta.xpath.BooleanExpr#accept(BooleanExprVisitor)
26: */
27: public void accept(BooleanExprVisitor visitor)
28: throws XPathException {
29: visitor.visit(this );
30: }
31:
32: public String toString() {
33: return toString("=");
34: }
35:
36: }
37:
38: // $Log: TextEqualsExpr.java,v $
39: // Revision 1.6 2002/12/13 22:42:22 eobrain
40: // Fix javadoc.
41: //
42: // Revision 1.5 2002/12/13 18:08:34 eobrain
43: // Factor Visitor out into separate visitors for node tests and predicates.
44: //
45: // Revision 1.4 2002/12/06 23:41:49 eobrain
46: // Add toString() which returns the original XPath.
47: //
48: // Revision 1.3 2002/10/30 16:47:00 eobrain
49: // Comment change only
50: //
51: // Revision 1.2 2002/10/30 16:46:20 eobrain
52: // Comment change only
53: //
54: // Revision 1.1 2002/10/30 16:23:42 eobrain
55: // Feature request [ 630127 ] Support /a/b[text()='foo']
56: // http://sourceforge.net/projects/sparta-xml/
|