View Javadoc

1   /*
2    ORDI - Ontology Repository and Data Integration
3   
4    Copyright (c) 2004-2007, OntoText Lab. / SIRMA
5   
6    This library is free software; you can redistribute it and/or modify it under
7    the terms of the GNU Lesser General Public License as published by the Free
8    Software Foundation; either version 2.1 of the License, or (at your option)
9    any later version.
10   This library is distributed in the hope that it will be useful, but WITHOUT
11   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12   FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13   details.
14   You should have received a copy of the GNU Lesser General Public License along
15   with this library; if not, write to the Free Software Foundation, Inc.,
16   59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17   */
18  package com.ontotext.ordi.wsmo4rdf;
19  
20  /**
21   * This class is call-back interface that {@link WsmoConnection} class will use to
22   * return query result values.
23   * 
24   * @author vassil
25   * 
26   */
27  public interface QueryResultListener {
28  
29      /**
30       * Method is called when a new set of binded variables is iterated.
31       */
32      public void nextBindingSet();
33  
34      /**
35       * Method is called when a binded variable is iterated.
36       * 
37       * @param name
38       *            is binded name
39       * @param value
40       *            is binded value
41       */
42      public void nextBinding(String name, Object value);
43  }