redora.generator
Class Internationalizer

java.lang.Object
  extended by redora.generator.Internationalizer

public class Internationalizer
extends Object

Fixes the caption elements on model and attributes. The default language captions are created from the model and attribute names. And the optional table caption attributes are set from the form attribute.

Author:
Nanjing RedOrange (http://www.red-orange.cn)

Constructor Summary
Internationalizer(String defaultLanguage)
           
 
Method Summary
 void internationalize(Document doc, String modelName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Internationalizer

public Internationalizer(@NotNull
                         String defaultLanguage)
Parameters:
defaultLanguage - (Mandatory) From maven pom settings or Redora default 'en'.
Method Detail

internationalize

public void internationalize(@NotNull
                             Document doc,
                             @NotNull
                             String modelName)
                      throws ModelGenerationException
Throws:
ModelGenerationException


Copyright © 2012 Nanjing RedOrange Co. ltd. All Rights Reserved.