org.sf.codejen.js
Class JsFileNameGenerator

java.lang.Object
  extended by org.sf.codejen.js.JsWorker
      extended by org.sf.codejen.js.JsFileNameGenerator
All Implemented Interfaces:
FileNameGenerator

public class JsFileNameGenerator
extends JsWorker
implements FileNameGenerator

JavaScript-able FileNameGenerator

Author:
Shane Ng
See Also:
FileNameGenerator, JsWorker

Constructor Summary
JsFileNameGenerator()
           
 
Method Summary
 String generate(Object model)
          Generates file name from the information of the model.
 
Methods inherited from class org.sf.codejen.js.JsWorker
exec, setModelName, setScript
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsFileNameGenerator

public JsFileNameGenerator()
Method Detail

generate

public String generate(Object model)
Description copied from interface: FileNameGenerator
Generates file name from the information of the model.

Specified by:
generate in interface FileNameGenerator
Parameters:
model - the model that provides information to generate file name.
Returns:
file name of the source code.
See Also:
FileNameGenerator.generate(Object)