org.esa.beam.visat.actions.pgrab.model
Class Repository

java.lang.Object
  extended by org.esa.beam.visat.actions.pgrab.model.Repository

public class Repository
extends Object


Nested Class Summary
static interface Repository.RepositoryListener
           
 
Field Summary
static String PROPERTIES_FILE_NAME
           
static String REPOSITORY_CACHE_DIR_NAME
           
 
Constructor Summary
Repository(File baseDir)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

REPOSITORY_CACHE_DIR_NAME

public static final String REPOSITORY_CACHE_DIR_NAME
See Also:
Constant Field Values

PROPERTIES_FILE_NAME

public static final String PROPERTIES_FILE_NAME
See Also:
Constant Field Values
Constructor Detail

Repository

public Repository(File baseDir)
Method Detail

getBaseDir

public File getBaseDir()

getStorageDir

public File getStorageDir()

getPropertyMap

public PropertyMap getPropertyMap()
Retrieves the PropertyMap for this repository.

Returns:
the property map.

savePropertyMap

public void savePropertyMap()
Saves the property map.


addEntry

public void addEntry(RepositoryEntry entry)

removeEntry

public void removeEntry(RepositoryEntry entry)

setDataProviders

public void setDataProviders(DataProvider[] providers)
Sets the DataProviders to this Repository. A call to this method is only allowed once, other wise an IllegalStateException is thrown.


getDataProviders

public DataProvider[] getDataProviders()

addListener

public void addListener(Repository.RepositoryListener repositoryListener)

removeListener

public void removeListener(Repository.RepositoryListener repositoryListener)

getListeners

public Repository.RepositoryListener[] getListeners()

getEntryCount

public int getEntryCount()

getEntry

public RepositoryEntry getEntry(int index)

indexOf

public int indexOf(RepositoryEntry entry)

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.