com.fullspan.propkeyconst
Class PropertyFileGenerator

java.lang.Object
  extended bycom.fullspan.propkeyconst.PropertyFileGenerator

public class PropertyFileGenerator
extends java.lang.Object

Generates a Java .properties file with property keys and values.

Author:
Mitch Stuart

Constructor Summary
PropertyFileGenerator(java.lang.String propFilePath, RootClassDesc rootClassDesc)
          Construct an instance of this class to generate a single .properties file with all of the constants in the rootClassDesc.
 
Method Summary
 void generate()
          Generate the .properties file with the directory and file name, and class name specified in this object's constructor.
protected  void generateComment(ICommentHolder commentHolder)
           
protected  void generateConstants(ClassDesc classDesc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFileGenerator

public PropertyFileGenerator(java.lang.String propFilePath,
                             RootClassDesc rootClassDesc)
Construct an instance of this class to generate a single .properties file with all of the constants in the rootClassDesc.

Parameters:
propFilePath - the filesystem path (directory and file name) into which the generated properties will be placed
rootClassDesc - the root class descriptor, typically the caller will get this from PropertyLoader.getRootClassDesc()
Method Detail

generate

public void generate()
Generate the .properties file with the directory and file name, and class name specified in this object's constructor.


generateConstants

protected void generateConstants(ClassDesc classDesc)
                          throws java.io.IOException
Throws:
java.io.IOException

generateComment

protected void generateComment(ICommentHolder commentHolder)