Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: nl/aidministrator/rdf/ral/NamespaceIterator.java


1   /*  Sesame - Storage and Querying architecture for RDF and RDF Schema
2    *  Copyright (C) 2002 Aidministrator Nederland b.v.
3    *
4    *  Contact: 
5    *  Aidministrator Nederland b.v.
6    *  Julianaplein 14b 
7    *  3817 CS Amersfoort
8    *  The Netherlands
9    *  tel. +31(0)33 4659987
10   *  fax. +31(0)33 4659987
11   *  sesame@aidministrator.nl
12   *
13   *   http://www.aidministrator.nl/
14   *  
15   *  This library is free software; you can redistribute it and/or
16   *  modify it under the terms of the GNU Lesser General Public
17   *  License as published by the Free Software Foundation; either
18   *  version 2.1 of the License, or (at your option) any later version.
19   *
20   *  This library is distributed in the hope that it will be useful,
21   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
22   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
23   *  Lesser General Public License for more details.
24   *
25   *  You should have received a copy of the GNU Lesser General Public
26   *  License along with this library; if not, write to the Free Software
27   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
28   */
29  
30  package nl.aidministrator.rdf.ral;
31  
32  import nl.aidministrator.rdf.sail.model.*;
33  
34  /**
35   * Declares the interface of the iterator over namespaces. Sesame uses a
36   * streaming approach, this means namespaces are retrieved from the
37   * repository one by one, instead of retrieving them all in one take and storing
38   * them into memory. Thus, the streaming approach saves memory.
39   *
40   * @author Arjohn Kampman
41   * @author Jeen Broekstra
42   * @version 1.2, 12/13/01
43   */
44  public interface NamespaceIterator {
45    /**
46     * Checks whether there are any more results available.
47     *
48     * @return boolean indicating whether there are any more results available.
49     */
50    public boolean hasNext();
51    /**
52     * Gets the next result. */
53    public void next();
54    /**
55     * Gets the namespace 's prefix.
56     *
57     * @return name of namespace
58     */
59    public String getName();
60    /**
61     * Gets the namespace 's name.
62     *
63     * @return prefix of namespace
64     */
65    public String getPrefix();
66    /**
67     * Closes all connections to the repository. */
68    public void close();
69  }