org.openrdf.sesame.config
Class RepositoryListBuilder

java.lang.Object
  extended byorg.openrdf.sesame.config.RepositoryListBuilder
All Implemented Interfaces:
RepositoryListListener

public class RepositoryListBuilder
extends Object
implements RepositoryListListener

A RepositoryListListener that can be used to build a RepositoryListImpl.

See Also:
RepositoryListImpl

Constructor Summary
RepositoryListBuilder()
          Creates a new RepositoryListBuilder.
 
Method Summary
 void clear()
          Clear the builder.
 void endRepositoryList()
          Indicates the end of a repository list.
 RepositoryList getRepositoryList()
          Gets the RepositoryListImpl that has been built.
 void repository(String id, String title, boolean readable, boolean writable)
          Delivers information about an available repository.
 void startRepositoryList()
          Indicates the start of a repository list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryListBuilder

public RepositoryListBuilder()
Creates a new RepositoryListBuilder.

Method Detail

getRepositoryList

public RepositoryList getRepositoryList()
Gets the RepositoryListImpl that has been built. This method only returns a list when the results have (partially) been parsed, and when the builder hasn't been cleared in the meantime.

Returns:
A RepositoryListImpl, or null if not available.

clear

public void clear()
Clear the builder. Any RepositoryListImpl that has been built so far will be removed.


startRepositoryList

public void startRepositoryList()
Indicates the start of a repository list.

Specified by:
startRepositoryList in interface RepositoryListListener

endRepositoryList

public void endRepositoryList()
Indicates the end of a repository list.

Specified by:
endRepositoryList in interface RepositoryListListener

repository

public void repository(String id,
                       String title,
                       boolean readable,
                       boolean writable)
Delivers information about an available repository.

Specified by:
repository in interface RepositoryListListener


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.