01: package com.rimfaxe.xml.xmlreader.xpath;
02:
03: /**
04: * An expression testing that the text node is not equal to a given string.
05: * An [text()!='value'] expression.
06: *
07: <blockquote><small> Copyright (C) 2002 Hewlett-Packard Company.
08: This file is part of Sparta, an XML Parser, DOM, and XPath library.
09: This library is free software; you can redistribute it and/or
10: modify it under the terms of the <a href="doc-files/LGPL.txt">GNU
11: Lesser General Public License</a> as published by the Free Software
12: Foundation; either version 2.1 of the License, or (at your option)
13: any later version. This library is distributed in the hope that it
14: will be useful, but WITHOUT ANY WARRANTY; without even the implied
15: warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16: PURPOSE. </small></blockquote>
17: @version $Date: 2002/12/13 22:42:22 $ $Revision: 1.4 $
18: @author Eamonn O'Brien-Strain
19: */
20: public class TextNotEqualsExpr extends TextCompareExpr {
21: TextNotEqualsExpr(String value) {
22: super (value);
23: }
24:
25: /**
26: * @see com.hp.hpl.sparta.xpath.BooleanExpr#accept(BooleanExprVisitor)
27: */
28: public void accept(BooleanExprVisitor visitor)
29: throws XPathException {
30: visitor.visit(this );
31: }
32:
33: public String toString() {
34: return toString("!=");
35: }
36: }
37:
38: //$Log: TextNotEqualsExpr.java,v $
39: //Revision 1.4 2002/12/13 22:42:22 eobrain
40: //Fix javadoc.
41: //
42: //Revision 1.3 2002/12/13 18:08:46 eobrain
43: //Factor Visitor out into separate visitors for node tests and predicates.
44: //
45: //Revision 1.2 2002/12/06 23:41:49 eobrain
46: //Add toString() which returns the original XPath.
47: //
48: //Revision 1.1 2002/10/30 16:24:24 eobrain
49: //Feature request [ 630127 ] Support /a/b[text()='foo']
50: //http://sourceforge.net/projects/sparta-xml/
51: //
|