org.richfaces.cdk
Class Generator.EmptyFileManager

java.lang.Object
  extended by org.richfaces.cdk.Generator.EmptyFileManager
All Implemented Interfaces:
FileManager
Enclosing class:
Generator

public static final class Generator.EmptyFileManager
extends java.lang.Object
implements FileManager


Constructor Summary
Generator.EmptyFileManager()
           
 
Method Summary
 java.io.Writer createOutput(java.lang.String path, long lastModified)
          

Create new file in output folder.

 java.io.File getFile(java.lang.String path)
          

Get existing file or directory.

 java.lang.Iterable<java.io.File> getFiles()
          

Get collection of all source files for this manager.

 java.lang.Iterable<java.io.File> getFolders()
          

Return collection of all folders included in this manager instance.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator.EmptyFileManager

public Generator.EmptyFileManager()
Method Detail

getFolders

public java.lang.Iterable<java.io.File> getFolders()
Description copied from interface: FileManager

Return collection of all folders included in this manager instance.

Specified by:
getFolders in interface FileManager
Returns:

getFiles

public java.lang.Iterable<java.io.File> getFiles()
Description copied from interface: FileManager

Get collection of all source files for this manager.

Specified by:
getFiles in interface FileManager
Returns:
collection of files explicitly included for processing.

getFile

public java.io.File getFile(java.lang.String path)
                     throws java.io.FileNotFoundException
Description copied from interface: FileManager

Get existing file or directory.

Specified by:
getFile in interface FileManager
Returns:
Throws:
java.io.FileNotFoundException

createOutput

public java.io.Writer createOutput(java.lang.String path,
                                   long lastModified)
                            throws java.io.IOException
Description copied from interface: FileManager

Create new file in output folder.

Specified by:
createOutput in interface FileManager
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:
java.io.IOException


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.