public final class Repositories extends Object implements Iterable<Repositories.Repository>
JSONObject representation of a list of repositories coming
from a ModeShape REST Service.| Modifier and Type | Class and Description |
|---|---|
static class |
Repositories.Repository
POJO representation of a
Repository |
| Modifier | Constructor and Description |
|---|---|
protected |
Repositories(org.codehaus.jettison.json.JSONObject json)
Creates a new instance wrapping the JSON data.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Repositories.Repository> |
getRepositories()
Returns the list of repositories this container holds.
|
Repositories.Repository |
getRepository(String name)
Returns a repository with the given name from the list of contained repositories.
|
Set<String> |
getRepositoryNames()
Returns a list of all the repository names.
|
Iterator<Repositories.Repository> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected Repositories(org.codehaus.jettison.json.JSONObject json)
json - a JSONObject coming from the REST server; never nullpublic Iterator<Repositories.Repository> iterator()
iterator in interface Iterable<Repositories.Repository>public Set<Repositories.Repository> getRepositories()
List(Repository), never nullpublic Set<String> getRepositoryNames()
Set of names, never nullpublic Repositories.Repository getRepository(String name)
name - a String the name of the repository to look for; never nullRepositories.Repository instance or null if
there is no such repository.Copyright © 2008–2021 JBoss, a division of Red Hat. All rights reserved.