org.jboss.test.audit.generate
Class SectionsClassGenerator

java.lang.Object
  extended by org.jboss.test.audit.generate.SectionsClassGenerator

public class SectionsClassGenerator
extends Object

Generates the source code (naive way) of a section constants container class. The original intention was to generate the source code during annotation processing. However due to various problems this class should be called separately (probably using exec-maven-plugin).

Author:
Martin Kouba

Nested Class Summary
 class SectionsClassGenerator.GeneratedSource
           
 
Field Summary
static String SOURCE_CLASS_NAME
           
 
Constructor Summary
SectionsClassGenerator()
           
 
Method Summary
 SectionsClassGenerator.GeneratedSource generateSource(InputStream auditXmlFile, String packageBase)
           
 void generateToFile(File outputDir, InputStream auditFile, String packageBase)
           
static void main(String[] args)
           
static String packageNameToPath(String packageName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOURCE_CLASS_NAME

public static final String SOURCE_CLASS_NAME
See Also:
Constant Field Values
Constructor Detail

SectionsClassGenerator

public SectionsClassGenerator()
Method Detail

main

public static void main(String[] args)
Parameters:
args -

generateSource

public SectionsClassGenerator.GeneratedSource generateSource(InputStream auditXmlFile,
                                                             String packageBase)
                                                      throws SAXException,
                                                             IOException,
                                                             ParserConfigurationException
Parameters:
auditXmlFile -
packageBase -
Returns:
Throws:
SAXException
IOException
ParserConfigurationException

generateToFile

public void generateToFile(File outputDir,
                           InputStream auditFile,
                           String packageBase)
                    throws URISyntaxException,
                           SAXException,
                           IOException,
                           ParserConfigurationException
Parameters:
auditFile -
packageBase -
specId -
Throws:
URISyntaxException
SAXException
IOException
ParserConfigurationException

packageNameToPath

public static String packageNameToPath(String packageName)


Copyright © 2009-2013. All Rights Reserved.