01: package org.apache.lucene.xmlparser;
02:
03: import org.apache.lucene.search.Query;
04: import org.w3c.dom.Element;
05:
06: /**
07: * Licensed to the Apache Software Foundation (ASF) under one or more
08: * contributor license agreements. See the NOTICE file distributed with
09: * this work for additional information regarding copyright ownership.
10: * The ASF licenses this file to You under the Apache License, Version 2.0
11: * (the "License"); you may not use this file except in compliance with
12: * the License. You may obtain a copy of the License at
13: *
14: * http://www.apache.org/licenses/LICENSE-2.0
15: *
16: * Unless required by applicable law or agreed to in writing, software
17: * distributed under the License is distributed on an "AS IS" BASIS,
18: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19: * See the License for the specific language governing permissions and
20: * limitations under the License.
21: */
22: /**
23: * Implemented by objects that produce Lucene Query objects from XML streams. Implementations are
24: * expected to be thread-safe so that they can be used to simultaneously parse multiple XML documents.
25: * @author maharwood
26: */
27: public interface QueryBuilder {
28:
29: public Query getQuery(Element e) throws ParserException;
30:
31: }
|