RichFaces CDK Generator 4.2.0.CR1

org.richfaces.cdk
Interface FileManager

All Known Subinterfaces:
OutputFileManager, SourceFileManager
All Known Implementing Classes:
Generator.EmptyFileManager, OutputFileManagerImpl, SourceFileManagerImpl

public interface FileManager

Author:
asmirnov@exadel.com

Method Summary
 Writer createOutput(String path, long lastModified)
          

Create new file in output folder.

 File getFile(String path)
          

Get existing file or directory.

 Iterable<File> getFiles()
          

Get collection of all source files for this manager.

 Iterable<File> getFolders()
          

Return collection of all folders included in this manager instance.

 

Method Detail

getFile

File getFile(String path)
             throws FileNotFoundException

Get existing file or directory.

Parameters:
path -
Returns:
Throws:
FileNotFoundException

getFiles

Iterable<File> getFiles()

Get collection of all source files for this manager.

Returns:
collection of files explicitly included for processing.

createOutput

Writer createOutput(String path,
                    long lastModified)
                    throws IOException

Create new file in output folder.

Parameters:
path - relative path to output file.
lastModified - time of last modification of model.
Returns:
file descriptor or null if file exists and its modification time is later then lastModified parameter.
Throws:
IOException

getFolders

Iterable<File> getFolders()

Return collection of all folders included in this manager instance.

Returns:

RichFaces CDK Generator 4.2.0.CR1

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.