01: /* Generated by Together */
02:
03: package com.rimfaxe.xml.xmlreader.xpath;
04:
05: /** An expression testing that an attribute is not equal to a given string.
06: * A '@attrName != "value"' test.
07:
08: <blockquote><small> Copyright (C) 2002 Hewlett-Packard Company.
09: This file is part of Sparta, an XML Parser, DOM, and XPath library.
10: This library is free software; you can redistribute it and/or
11: modify it under the terms of the <a href="doc-files/LGPL.txt">GNU
12: Lesser General Public License</a> as published by the Free Software
13: Foundation; either version 2.1 of the License, or (at your option)
14: any later version. This library is distributed in the hope that it
15: will be useful, but WITHOUT ANY WARRANTY; without even the implied
16: warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
17: PURPOSE. </small></blockquote>
18: @version $Date: 2002/12/13 22:42:22 $ $Revision: 1.5 $
19: @author Eamonn O'Brien-Strain
20: */
21: public class AttrNotEqualsExpr extends AttrCompareExpr {
22: AttrNotEqualsExpr(String attrName, String attrValue) {
23: super (attrName, attrValue);
24: }
25:
26: public void accept(BooleanExprVisitor visitor)
27: throws XPathException {
28: visitor.visit(this );
29: }
30:
31: public String toString() {
32: return toString("!=");
33: }
34:
35: }
36:
37: // $Log: AttrNotEqualsExpr.java,v $
38: // Revision 1.5 2002/12/13 22:42:22 eobrain
39: // Fix javadoc.
40: //
41: // Revision 1.4 2002/12/13 18:08:36 eobrain
42: // Factor Visitor out into separate visitors for node tests and predicates.
43: //
44: // Revision 1.3 2002/12/06 23:41:49 eobrain
45: // Add toString() which returns the original XPath.
46: //
47: // Revision 1.2 2002/10/30 16:28:13 eobrain
48: // Factor out some common stuff to AttrCompareExpr
49: //
50: // Revision 1.1.1.1 2002/08/19 05:04:05 eobrain
51: // import from HP Labs internal CVS
52: //
53: // Revision 1.2 2002/08/18 23:38:19 eob
54: // Add copyright and other formatting and commenting in preparation for
55: // release to SourceForge.
56: //
57: // Revision 1.1 2002/02/01 02:54:16 eob
58: // initial
|