net.sf.stitch.crud
Class MessagesMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by net.sf.stitch.crud.MessagesMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class MessagesMojo
extends org.apache.maven.plugin.AbstractMojo

Creates entries for a Messages resource bundle based on an Entity class.


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
MessagesMojo()
           
 
Method Summary
 void execute()
           
protected static java.lang.String guessTranslation(java.lang.String fieldName)
          Guesses the English translation for a field name by naturalizing the camelCase.
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessagesMojo

public MessagesMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

guessTranslation

protected static java.lang.String guessTranslation(java.lang.String fieldName)
Guesses the English translation for a field name by naturalizing the camelCase.

Parameters:
fieldName -
Returns:
"camelCase" returns "Camel Case"


Copyright © 2007. All Rights Reserved.