View Javadoc

1   /*
2    * $Header$
3    * $Revision: 1128 $
4    * $Date: 2006-02-05 13:49:04 -0800 (Sun, 05 Feb 2006) $
5    *
6    * ====================================================================
7    *
8    * Copyright 2000-2002 bob mcwhirter & James Strachan.
9    * All rights reserved.
10   *
11   *
12   * Redistribution and use in source and binary forms, with or without
13   * modification, are permitted provided that the following conditions are
14   * met:
15   * 
16   *   * Redistributions of source code must retain the above copyright
17   *     notice, this list of conditions and the following disclaimer.
18   * 
19   *   * Redistributions in binary form must reproduce the above copyright
20   *     notice, this list of conditions and the following disclaimer in the
21   *     documentation and/or other materials provided with the distribution.
22   * 
23   *   * Neither the name of the Jaxen Project nor the names of its
24   *     contributors may be used to endorse or promote products derived 
25   *     from this software without specific prior written permission.
26   * 
27   * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
28   * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
29   * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
30   * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
31   * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
32   * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
33   * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
34   * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
35   * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
36   * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
37   * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38   *
39   * ====================================================================
40   * This software consists of voluntary contributions made by many
41   * individuals on behalf of the Jaxen Project and was originally
42   * created by bob mcwhirter <bob@werken.com> and
43   * James Strachan <jstrachan@apache.org>.  For more information on the
44   * Jaxen Project, please see <http://www.jaxen.org/>.
45   *
46   * $Id: DefaultXPathHandler.java 1128 2006-02-05 21:49:04Z elharo $
47   */
48  
49  
50  
51  
52  package org.jaxen.saxpath.helpers;
53  
54  import org.jaxen.saxpath.SAXPathException;
55  import org.jaxen.saxpath.XPathHandler;
56  
57  /**
58  
59     Default base class for SAXPath event handlers. 
60  
61     This class is available as a convenience base class for SAXPath
62     applications: it provides a default do-nothing implementation 
63     for all of the callbacks in the core SAXPath handler class, {@link
64     org.jaxen.saxpath.XPathHandler}.
65  
66     Application writers can extend this class when they need to
67     implement only part of the <code>XPathHandler</code>
68     interface. Parser writers can instantiate
69     this class to provide default handlers when the application has not
70     supplied its own. */
71  
72  public class DefaultXPathHandler implements XPathHandler
73  {
74  
75      public void startXPath() throws SAXPathException
76      {
77      }
78  
79      public void endXPath() throws SAXPathException
80      {
81      }
82  
83      public void startPathExpr() throws SAXPathException
84      {
85      }
86  
87      public void endPathExpr() throws SAXPathException
88      {
89      }
90  
91      public void startAbsoluteLocationPath() throws SAXPathException
92      {
93      }
94  
95      public void endAbsoluteLocationPath() throws SAXPathException
96      {
97      }
98  
99      public void startRelativeLocationPath() throws SAXPathException
100     {
101     }
102 
103     public void endRelativeLocationPath() throws SAXPathException
104     {
105     }
106 
107     public void startNameStep(int axis,
108                               String prefix,
109                               String localName) throws SAXPathException
110     {
111     }
112 
113     public void endNameStep() throws SAXPathException
114     {
115     }
116 
117     public void startTextNodeStep(int axis) throws SAXPathException
118     {
119     }
120     public void endTextNodeStep() throws SAXPathException
121     {
122     }
123 
124     public void startCommentNodeStep(int axis) throws SAXPathException
125     {
126     }
127 
128     public void endCommentNodeStep() throws SAXPathException
129     {
130     }
131 
132     public void startAllNodeStep(int axis) throws SAXPathException
133     {
134     }
135 
136     public void endAllNodeStep() throws SAXPathException
137     {
138     }
139 
140     public void startProcessingInstructionNodeStep(int axis,
141                                                    String name) throws SAXPathException
142     {
143     }
144     public void endProcessingInstructionNodeStep() throws SAXPathException
145     {
146     }
147 
148     public void startPredicate() throws SAXPathException
149     {
150     }
151 
152     public void endPredicate() throws SAXPathException
153     {
154     }
155 
156     public void startFilterExpr() throws SAXPathException
157     {
158     }
159 
160     public void endFilterExpr() throws SAXPathException
161     {
162     }
163 
164     public void startOrExpr() throws SAXPathException
165     {
166     }
167 
168     public void endOrExpr(boolean create) throws SAXPathException
169     {
170     }
171 
172     public void startAndExpr() throws SAXPathException
173     {
174     }
175 
176     public void endAndExpr(boolean create) throws SAXPathException
177     {
178     }
179 
180     public void startEqualityExpr() throws SAXPathException
181     {
182     }
183 
184     public void endEqualityExpr(int operator) throws SAXPathException
185     {
186     }
187 
188     public void startRelationalExpr() throws SAXPathException
189     {
190     }
191 
192     public void endRelationalExpr(int operator) throws SAXPathException
193     {
194     }
195 
196     public void startAdditiveExpr() throws SAXPathException
197     {
198     }
199 
200     public void endAdditiveExpr(int operator) throws SAXPathException
201     {
202     }
203 
204     public void startMultiplicativeExpr() throws SAXPathException
205     {
206     }
207 
208     public void endMultiplicativeExpr(int operator) throws SAXPathException
209     {
210     }
211 
212     public void startUnaryExpr() throws SAXPathException
213     {
214     }
215 
216     public void endUnaryExpr(int operator) throws SAXPathException
217     {
218     }
219 
220     public void startUnionExpr() throws SAXPathException
221     {
222     }
223 
224     public void endUnionExpr(boolean create) throws SAXPathException
225     {
226     }
227 
228     public void number(int number) throws SAXPathException
229     {
230     }
231 
232     public void number(double number) throws SAXPathException
233     {
234     }
235 
236     public void literal(String literal) throws SAXPathException
237     {
238     }
239 
240     public void variableReference(String prefix,
241                                   String variableName) throws SAXPathException
242     {
243     }
244 
245     public void startFunction(String prefix,
246                               String functionName) throws SAXPathException
247     {
248     }
249 
250     public void endFunction() throws SAXPathException
251     {
252     }
253 
254 }