01: /* Generated by Together */
02:
03: package com.rimfaxe.xml.xmlreader.xpath;
04:
05: /** A boolean test on an attribute.
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/06 23:41:49 $ $Revision: 1.2 $
18: @author Eamonn O'Brien-Strain
19: */
20: public abstract class AttrExpr extends BooleanExpr {
21: AttrExpr(String attrName) {
22: attrName_ = attrName;
23: }
24:
25: public String getAttrName() {
26: return attrName_;
27: }
28:
29: public String toString() {
30: return "@" + attrName_;
31: }
32:
33: private final String attrName_;
34: }
35:
36: // $Log: AttrExpr.java,v $
37: // Revision 1.2 2002/12/06 23:41:49 eobrain
38: // Add toString() which returns the original XPath.
39: //
40: // Revision 1.1.1.1 2002/08/19 05:04:05 eobrain
41: // import from HP Labs internal CVS
42: //
43: // Revision 1.2 2002/08/18 23:38:13 eob
44: // Add copyright and other formatting and commenting in preparation for
45: // release to SourceForge.
46: //
47: // Revision 1.1 2002/02/01 02:50:47 eob
48: // initial
|