JBoss Logging I18n Tools 1.0.0.Beta7

org.jboss.logging.model
Class MessageBundleTranslator

java.lang.Object
  extended by org.jboss.logging.model.ClassModel
      extended by org.jboss.logging.model.MessageBundleTranslator

public class MessageBundleTranslator
extends ClassModel

The java message bundle class model.

Author:
Kevin Pollet - SERLI - (kevin.pollet@serli.com)

Constructor Summary
MessageBundleTranslator(String className, String superClassName, Map<MethodDescriptor,String> translations)
          Create a MessageBundle with super class and interface.
 
Method Summary
 com.sun.codemodel.internal.JCodeModel generateModel()
          Generate the code corresponding to this class model
 
Methods inherited from class org.jboss.logging.model.ClassModel
addMessageMethod, addMessageMethod, create, getClassName, getCodeModel, getDefinedClass, getProjectCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageBundleTranslator

public MessageBundleTranslator(String className,
                               String superClassName,
                               Map<MethodDescriptor,String> translations)
Create a MessageBundle with super class and interface.

Parameters:
className - the qualified class name
superClassName - the super class name
translations - the translation map.
Method Detail

generateModel

public com.sun.codemodel.internal.JCodeModel generateModel()
                                                    throws IllegalStateException
Generate the code corresponding to this class model

Overrides:
generateModel in class ClassModel
Returns:
the generated code
Throws:
IllegalStateException - if the class has already been defined.

JBoss Logging I18n Tools 1.0.0.Beta7

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.