org.jboss.test.audit.generate
Class SectionsClassGenerator
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCE_CLASS_NAME
public static final String SOURCE_CLASS_NAME
- See Also:
- Constant Field Values
SectionsClassGenerator
public SectionsClassGenerator()
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.