Interface ISextanteDataObject
-
- All Known Subinterfaces:
ISextanteLayer,ISextanteRasterLayer
- All Known Implementing Classes:
AbstractSextanteRasterLayer,OpenJUMPSextanteRasterLayer
public interface ISextanteDataObjectInterface for data objects (layers and tables). This interface should be used to wrap other data objects, so they are compatible with SEXTANTE and thus can be used as inputs to geoalgorithms- Author:
- Victor Olaya volaya@unex.es
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()This method closes the data object, which was opened using the open() method.ObjectgetBaseDataObject()Returns the base data object (i.e.StringgetFilename()Returns the filename associated to this data object.StringgetName()Returns the name of this data objectvoidopen()This methods initialize the data object, so it is ready to be accessedvoidpostProcess()This method post-processes the object after it has been created.voidsetName(String sName)Sets a new name for this object
-
-
-
Method Detail
-
getBaseDataObject
Object getBaseDataObject()
Returns the base data object (i.e. the object that this class wraps, which contains the data itself)- Returns:
- the base data object
-
getName
String getName()
Returns the name of this data object- Returns:
- the name of this data object
-
setName
void setName(String sName)
Sets a new name for this object- Parameters:
sName- the new name
-
getFilename
String getFilename()
Returns the filename associated to this data object.- Returns:
- the filename associated to this data object. Can be null, since the object wrapped by this class doesn't have to be file-based.
-
postProcess
void postProcess() throws ExceptionThis method post-processes the object after it has been created. If, for instance, data are kept in memory before they are dumped to file, this method should write that file.- Throws:
Exception- if an Exception occurs during post-processing
-
open
void open()
This methods initialize the data object, so it is ready to be accessed
-
close
void close()
This method closes the data object, which was opened using the open() method.
-
-