01: /* Generated by Together */
02:
03: package com.rimfaxe.xml.xmlreader.xpath;
04:
05: /** A '@attrName = "value"' test.
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 18:08:42 $ $Revision: 1.4 $
18: @author Eamonn O'Brien-Strain
19: */
20: public class AttrEqualsExpr extends AttrCompareExpr {
21: AttrEqualsExpr(String attrName, String attrValue) {
22: super (attrName, attrValue);
23: }
24:
25: public void accept(BooleanExprVisitor visitor)
26: throws XPathException {
27: visitor.visit(this );
28: }
29:
30: public String toString() {
31: return toString("=");
32: }
33: }
34:
35: // $Log: AttrEqualsExpr.java,v $
36: // Revision 1.4 2002/12/13 18:08:42 eobrain
37: // Factor Visitor out into separate visitors for node tests and predicates.
38: //
39: // Revision 1.3 2002/12/06 23:41:49 eobrain
40: // Add toString() which returns the original XPath.
41: //
42: // Revision 1.2 2002/10/30 16:27:27 eobrain
43: // Factor out some common stuff to AttrCompareExpr
44: //
45: // Revision 1.1.1.1 2002/08/19 05:04:05 eobrain
46: // import from HP Labs internal CVS
47: //
48: // Revision 1.2 2002/08/18 23:38:03 eob
49: // Add copyright and other formatting and commenting in preparation for
50: // release to SourceForge.
51: //
52: // Revision 1.1 2002/02/01 02:46:57 eob
53: // initial
|