net.sourceforge.crudo.gen.file
Class XmlSourceGen

java.lang.Object
  extended by net.sourceforge.crudo.gen.file.XmlSourceGen
All Implemented Interfaces:
CrudoConstants, IActionCommand

public class XmlSourceGen
extends java.lang.Object
implements IActionCommand


Field Summary
 
Fields inherited from interface net.sourceforge.crudo.action.CrudoConstants
BASE_FOLDER, ENTITY, FACES_CONFIG_FILE, PAGE_NAME
 
Constructor Summary
XmlSourceGen()
           
 
Method Summary
protected  boolean baseFolderExists()
           
 void createBaseFolder()
           
 void createFunctionFolder()
           
 void createSourceFile()
           
 void execute(java.util.Map<java.lang.String,java.lang.Object> context)
           
protected  boolean functionFolderExists()
           
 java.lang.String getBaseFolderName()
           
 java.lang.String getFunctionName()
           
 void setBaseFolderName(java.lang.String baseFolderName)
           
 void setFunctionName(java.lang.String functionName)
           
protected  boolean sourceExists()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSourceGen

public XmlSourceGen()
Method Detail

execute

public void execute(java.util.Map<java.lang.String,java.lang.Object> context)
             throws java.lang.Exception
Specified by:
execute in interface IActionCommand
Throws:
java.lang.Exception

baseFolderExists

protected boolean baseFolderExists()

sourceExists

protected boolean sourceExists()

functionFolderExists

protected boolean functionFolderExists()

createBaseFolder

public void createBaseFolder()
                      throws java.io.IOException
Throws:
java.io.IOException

createSourceFile

public void createSourceFile()
                      throws java.lang.Exception
Throws:
java.lang.Exception

createFunctionFolder

public void createFunctionFolder()
                          throws java.io.IOException
Throws:
java.io.IOException

getBaseFolderName

public java.lang.String getBaseFolderName()

setBaseFolderName

public void setBaseFolderName(java.lang.String baseFolderName)

getFunctionName

public java.lang.String getFunctionName()

setFunctionName

public void setFunctionName(java.lang.String functionName)