|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.openrdf.sesame.config.RepositoryListImpl
A list for repository information. This list is provided for those who do not want to use the streaming approach provided by the RepositoryListListener. The RepositoryListBuilder can be used to build the lists.
RepositoryListBuilder| Constructor Summary | |
RepositoryListImpl()
Creates a new and empty RepositoryListImpl. |
|
RepositoryListImpl(List repInfoList)
Creates a new RepositoryListImpl that is initialized with the RepositoryInfo objects from the supplied list. |
|
| Method Summary | |
void |
addRepository(RepositoryInfo repInfo)
Adds info about a repository to this list. |
void |
addRepository(String id,
String title,
boolean readable,
boolean writeable)
Adds info about a repository to this list. |
List |
getReadableRepositories()
Gets a list of the repositories that are marked as being readable. |
List |
getReadWriteRepositories()
Gets a list of the repositories that are marked as being both readable and writable. |
List |
getRepositories()
Gets a list of RepositoryInfo objects containing info about all available repositories. |
RepositoryInfo |
getRepository(String repositoryId)
Gets the information about the repository with the specified ID. |
int |
getRepositoryCount()
Gets the number of repositories in this list. |
List |
getWritableRepositories()
Gets a list of the repositories that are marked as being writable. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RepositoryListImpl()
public RepositoryListImpl(List repInfoList)
repInfoList - A List containing RepositoryInfo objects.| Method Detail |
public int getRepositoryCount()
getRepositoryCount in interface RepositoryListpublic List getRepositories()
getRepositories in interface RepositoryListRepositoryInfopublic List getReadableRepositories()
getReadableRepositories in interface RepositoryListRepositoryInfopublic List getWritableRepositories()
getWritableRepositories in interface RepositoryListRepositoryInfopublic List getReadWriteRepositories()
getReadWriteRepositories in interface RepositoryListRepositoryInfopublic RepositoryInfo getRepository(String repositoryId)
getRepository in interface RepositoryList
public void addRepository(String id,
String title,
boolean readable,
boolean writeable)
addRepository in interface RepositoryListid - The repository's ID.title - The repository's title.readable - Flag indicating whether the repository is
readable.writeable - Flag indicating whether the repository is
writeable.public void addRepository(RepositoryInfo repInfo)
addRepository in interface RepositoryListrepInfo - A RepositoryInfo object.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||