org.jboss.logging.generator
Class TranslationFileGenerator
java.lang.Object
org.jboss.logging.AbstractTool
org.jboss.logging.generator.TranslationFileGenerator
@SupportedOptions(value="generatedTranslationFilesPath")
public final class TranslationFileGenerator
- extends AbstractTool
The generator of skeletal
translations files.
- Author:
- Kevin Pollet - SERLI - (kevin.pollet@serli.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GENERATED_FILES_PATH_OPTION
public static final String GENERATED_FILES_PATH_OPTION
- See Also:
- Constant Field Values
GENERATED_FILE_EXTENSION
public static final String GENERATED_FILE_EXTENSION
- See Also:
- Constant Field Values
TranslationFileGenerator
public TranslationFileGenerator(ProcessingEnvironment processingEnv)
- The constructor.
- Parameters:
processingEnv - the processing env
processTypeElement
public void processTypeElement(TypeElement annotation,
TypeElement element,
MethodDescriptors methodDescriptors)
- Processes a type element.
- Specified by:
processTypeElement in class AbstractTool
- Parameters:
annotation - the annotation who trigger the processingelement - the element that contains the methods.methodDescriptors - the method descriptors.
generateSkeletalTranslationFile
public void generateSkeletalTranslationFile(String relativePath,
String fileName,
MethodDescriptors methodDescriptors)
- Generate the translation file containing the given
translations.
- Parameters:
relativePath - the relative pathfileName - the file nametranslations - the translations
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.