com.geekologue.md4j.generators
Class StrutsAction1NestedLoadOrSearchActionGenerator

java.lang.Object
  extended by com.geekologue.md4j.generators.AbstractXsltBasedGenerator
      extended by com.geekologue.md4j.generators.StrutsAction1NestedLoadOrSearchActionGenerator
All Implemented Interfaces:
HibernateMappingProcessorLiason

public class StrutsAction1NestedLoadOrSearchActionGenerator
extends AbstractXsltBasedGenerator
implements HibernateMappingProcessorLiason

Creates Create or Update Struts 1.x load/search Actions depending on the "actionType" XSLT param (see constructor. StrutsAction1Generator uses instances of this class as nested generators to create Struts Action Java classes.

Author:
manos

Field Summary
 
Fields inherited from class com.geekologue.md4j.generators.AbstractXsltBasedGenerator
destDir, styleParameters
 
Constructor Summary
StrutsAction1NestedLoadOrSearchActionGenerator(java.util.Map xslParams)
           
 
Method Summary
 org.apache.tools.ant.util.FileNameMapper getNestedMapper()
          Implementations must return a nested structure mapper
 org.apache.tools.ant.util.FileNameMapper getSimpleMapper()
          Equal to <regexpmapper handledirsep="true" from="(.*)/(.*).hbm.xml" to="\1/web/\2@{actionType}Action.java" />
 void init(java.util.Map context)
           
 
Methods inherited from class com.geekologue.md4j.generators.AbstractXsltBasedGenerator
process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.geekologue.md4j.tools.ant.HibernateMappingProcessorLiason
process
 

Constructor Detail

StrutsAction1NestedLoadOrSearchActionGenerator

public StrutsAction1NestedLoadOrSearchActionGenerator(java.util.Map xslParams)
Method Detail

getSimpleMapper

public org.apache.tools.ant.util.FileNameMapper getSimpleMapper()
Equal to <regexpmapper handledirsep="true" from="(.*)/(.*).hbm.xml" to="\1/web/\2@{actionType}Action.java" />

Specified by:
getSimpleMapper in class AbstractXsltBasedGenerator
Returns:
the simple mapper
See Also:
com.geekologue.md4j.tools.ant.HibernateMappingProcessorLiason#getSimpleMapper()

getNestedMapper

public org.apache.tools.ant.util.FileNameMapper getNestedMapper()
Description copied from class: AbstractXsltBasedGenerator
Implementations must return a nested structure mapper

Specified by:
getNestedMapper in class AbstractXsltBasedGenerator
Returns:
the nested mapper
See Also:
com.geekologue.md4j.tools.ant.HibernateMappingProcessorLiason#getSimpleMapper()

init

public void init(java.util.Map context)
Specified by:
init in interface HibernateMappingProcessorLiason
Overrides:
init in class AbstractXsltBasedGenerator
See Also:
com.geekologue.md4j.tools.ant.generators.HibernateMappingProcessorLiason#init(com.geekologue.md4j.tools.ant.HibernateMappingProcessorTask)


Copyright © 2003-2007 Manos Batsis. All Rights Reserved.