01: package com.rimfaxe.xml.xmlreader.xpath;
02:
03: /**
04: * Add functionality to subclasses of BooleanExpr. This is a participant
05: * in the Visitor Pattern [Gamma et al, #331]. You pass a visitor to
06: * the XPath.accept method which then passes it to all the nodes on
07: * the parse tree, each one of which calls back one of the visitor's
08: * visit methods.
09:
10: <blockquote><small> Copyright (C) 2002 Hewlett-Packard Company.
11: This file is part of Sparta, an XML Parser, DOM, and XPath library.
12: This library is free software; you can redistribute it and/or
13: modify it under the terms of the <a href="doc-files/LGPL.txt">GNU
14: Lesser General Public License</a> as published by the Free Software
15: Foundation; either version 2.1 of the License, or (at your option)
16: any later version. This library is distributed in the hope that it
17: will be useful, but WITHOUT ANY WARRANTY; without even the implied
18: warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
19: PURPOSE. </small></blockquote>
20: @version $Date: 2002/12/05 04:34:38 $ $Revision: 1.4 $
21: @author Eamonn O'Brien-Strain
22: * @stereotype visitor
23: */
24: public interface BooleanExprVisitor {
25:
26: void visit(TrueExpr a);
27:
28: void visit(AttrExistsExpr a) throws XPathException;
29:
30: void visit(AttrEqualsExpr a) throws XPathException;
31:
32: void visit(AttrNotEqualsExpr a) throws XPathException;
33:
34: void visit(AttrLessExpr a) throws XPathException;
35:
36: void visit(AttrGreaterExpr a) throws XPathException;
37:
38: void visit(TextExistsExpr a) throws XPathException;
39:
40: void visit(TextEqualsExpr a) throws XPathException;
41:
42: void visit(TextNotEqualsExpr a) throws XPathException;
43:
44: void visit(PositionEqualsExpr a) throws XPathException;
45: }
|