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