org.jvnet.localizer
Class Generator

java.lang.Object
  extended by org.jvnet.localizer.Generator

public class Generator
extends Object

Author:
Kohsuke Kawaguchi

Constructor Summary
Generator(File outputDirectory, Reporter reporter)
           
 
Method Summary
 void build()
           
protected  int countArgs(String formatString)
          Counts the number of arguments.
 void generate(File baseDir, org.apache.tools.ant.DirectoryScanner ds)
           
 void generate(File propertyFile, String relPath)
           
 com.sun.codemodel.JCodeModel getCodeModel()
           
protected  String toClassName(String relPath)
           
protected  String toJavaIdentifier(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator(File outputDirectory,
                 Reporter reporter)
Method Detail

generate

public void generate(File baseDir,
                     org.apache.tools.ant.DirectoryScanner ds)
              throws IOException
Throws:
IOException

generate

public void generate(File propertyFile,
                     String relPath)
              throws IOException
Throws:
IOException

countArgs

protected int countArgs(String formatString)
Counts the number of arguments.


toJavaIdentifier

protected String toJavaIdentifier(String key)

toClassName

protected String toClassName(String relPath)

getCodeModel

public com.sun.codemodel.JCodeModel getCodeModel()

build

public void build()
           throws IOException
Throws:
IOException


Copyright © 2011. All Rights Reserved.