org.esa.beam.visat.actions.pgrab.model.dataprovider
Class ProductSizeProvider

java.lang.Object
  extended by org.esa.beam.visat.actions.pgrab.model.dataprovider.ProductSizeProvider
All Implemented Interfaces:
DataProvider

public class ProductSizeProvider
extends Object
implements DataProvider


Constructor Summary
ProductSizeProvider()
           
 
Method Summary
 void cleanUp(RepositoryEntry entry, Repository repository)
          Implementation should delete all stored data.
 void createData(RepositoryEntry entry, Repository repository)
          Implementation should create the data this DataProvider provides.
 Comparator getComparator()
          Returns the Comparator for the data provided by this DataProvider.
 Object getData(RepositoryEntry entry, Repository repository)
          Returns the data which is provided by this implementation.
 TableColumn getTableColumn()
          Returns a TableColumn which defines the UI representation of the provided data within a Table.
 boolean mustCreateData(RepositoryEntry entry, Repository repository)
          Implementation should check if the data this DataProvider provides must be created, or if it is already stored.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductSizeProvider

public ProductSizeProvider()
Method Detail

mustCreateData

public boolean mustCreateData(RepositoryEntry entry,
                              Repository repository)
Description copied from interface: DataProvider
Implementation should check if the data this DataProvider provides must be created, or if it is already stored.

Specified by:
mustCreateData in interface DataProvider
Parameters:
entry - the entry for which the data shall be provided.
repository - the repsoitory containing the entry.
Returns:
true, if the data must be created, otherwise false.

createData

public void createData(RepositoryEntry entry,
                       Repository repository)
                throws IOException
Description copied from interface: DataProvider
Implementation should create the data this DataProvider provides. Also the created should be stored for performance reasons. Created data can be stored into a PropertyMap retrieved by calling Repository.getPropertyMap() or in a directory retrieved from Repository.getStorageDir().

Specified by:
createData in interface DataProvider
Parameters:
entry - the entry for which the data shall be provided.
repository - the repository containing the entry. // todo - (from nf) for what? entry knows it repository!
Throws:
IOException - if an error occurs during creating the data.

getData

public Object getData(RepositoryEntry entry,
                      Repository repository)
               throws IOException
Description copied from interface: DataProvider
Returns the data which is provided by this implementation.

Specified by:
getData in interface DataProvider
Parameters:
entry - the entry for which the data shall be provided.
repository - the repository containing the entry. // todo - (from nf) for what? entry knows it repository!
Returns:
the provided data.
Throws:
IOException - if an error occurs during providing the data.

getComparator

public Comparator getComparator()
Description copied from interface: DataProvider
Returns the Comparator for the data provided by this DataProvider.

Specified by:
getComparator in interface DataProvider
Returns:
the comparator.

cleanUp

public void cleanUp(RepositoryEntry entry,
                    Repository repository)
Description copied from interface: DataProvider
Implementation should delete all stored data.

Specified by:
cleanUp in interface DataProvider
Parameters:
entry - the entry for which the data was provided.
repository - the repository contained the entry. // todo - (from nf) for what? entry knows it repository!

getTableColumn

public TableColumn getTableColumn()
Description copied from interface: DataProvider
Returns a TableColumn which defines the UI representation of the provided data within a Table.

Specified by:
getTableColumn in interface DataProvider
Returns:
the TableColumn.


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