public class Repository extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Repository.RepositoryListener |
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTIES_FILE_NAME |
static String |
REPOSITORY_CACHE_DIR_NAME |
Constructor and Description |
---|
Repository(File baseDir) |
Modifier and Type | Method and Description |
---|---|
void |
addEntry(RepositoryEntry entry) |
void |
addListener(Repository.RepositoryListener repositoryListener) |
boolean |
equals(Object obj) |
File |
getBaseDir() |
DataProvider[] |
getDataProviders() |
RepositoryEntry |
getEntry(int index) |
int |
getEntryCount() |
Repository.RepositoryListener[] |
getListeners() |
PropertyMap |
getPropertyMap()
Retrieves the
PropertyMap for this repository. |
File |
getStorageDir() |
int |
indexOf(RepositoryEntry entry) |
void |
removeEntry(RepositoryEntry entry) |
void |
removeListener(Repository.RepositoryListener repositoryListener) |
void |
savePropertyMap()
Saves the property map.
|
void |
setDataProviders(DataProvider[] providers)
Sets the
DataProviders to this Repository . |
String |
toString() |
public static final String REPOSITORY_CACHE_DIR_NAME
public static final String PROPERTIES_FILE_NAME
public Repository(File baseDir)
public File getBaseDir()
public File getStorageDir()
public PropertyMap getPropertyMap()
PropertyMap
for this repository.public void savePropertyMap()
public void addEntry(RepositoryEntry entry)
public void removeEntry(RepositoryEntry entry)
public void setDataProviders(DataProvider[] providers)
DataProviders
to this Repository
.
A call to this method is only allowed once, other wise an IllegalStateException
is thrown.public DataProvider[] getDataProviders()
public void addListener(Repository.RepositoryListener repositoryListener)
public void removeListener(Repository.RepositoryListener repositoryListener)
public Repository.RepositoryListener[] getListeners()
public int getEntryCount()
public RepositoryEntry getEntry(int index)
public int indexOf(RepositoryEntry entry)
Copyright © 2002–2014 Brockmann Consult GmbH. All rights reserved.