maito.browsing.fileexport
Interface FileFormat

All Known Implementing Classes:
CSVResourceListFormat, PajekFormat

public interface FileFormat


Method Summary
 void setRelations(ResourceRelation[] relations)
          Sets the relations that are to be written to the file.
 void setResources(Resource[] resources)
          Sets the resources that are to be written to the file.
 boolean writeFile(java.lang.String filename)
          Writes the data set by setResources and setRelations to a file that's in a format that the implementing class supports.
 

Method Detail

setResources

void setResources(Resource[] resources)
Sets the resources that are to be written to the file.

Parameters:
resources - The resources that are to be written to the file. The implementing method should replace the possibly previously set resources instead of adding new ones to the previous array.

setRelations

void setRelations(ResourceRelation[] relations)
Sets the relations that are to be written to the file.

Parameters:
relations - The relations that are to be written to the file. The implementing method should replace the possibly previously set relations instead of adding new ones to the previous array.

writeFile

boolean writeFile(java.lang.String filename)
Writes the data set by setResources and setRelations to a file that's in a format that the implementing class supports.

Parameters:
filename - the full path and name of the file to write the data to
Returns:
true if succeeded, false if there was an error