public class JavaDocExtractor extends Object
The schemagen tool operates on compiled bytecode, where JavaDoc comments are not present. However, the javadoc documentation present in java source files is required within the generated XSD to increase usability and produce an XSD which does not loose out on important usage information.
The JavaDocExtractor is used as a post processor after creating the XSDs within the compilation unit, and injects XSD annotations into the appropriate XSD elements or types.
Constructor and Description |
---|
JavaDocExtractor(org.apache.maven.plugin.logging.Log log)
Creates a JavaDocExtractor wrapping the supplied Maven Log.
|
Modifier and Type | Method and Description |
---|---|
JavaDocExtractor |
addSourceFiles(List<File> sourceCodeFiles)
Adds the supplied sourceCodeFiles for processing by this JavaDocExtractor.
|
JavaDocExtractor |
addSourceURLs(List<URL> sourceCodeURLs)
Adds the supplied sourceCodeFiles for processing by this JavaDocExtractor.
|
SearchableDocumentation |
process()
Processes all supplied Java source Files and URLs to extract JavaDocData for all ClassLocations from which
JavaDoc has been collected.
|
public JavaDocExtractor(org.apache.maven.plugin.logging.Log log)
log
- A non-null Log.public JavaDocExtractor addSourceFiles(List<File> sourceCodeFiles) throws IllegalArgumentException
sourceCodeFiles
- The non-null List of source code files to add.IllegalArgumentException
- If any of the given sourceCodeFiles could not be read properly.public JavaDocExtractor addSourceURLs(List<URL> sourceCodeURLs) throws IllegalArgumentException
sourceCodeURLs
- The non-null List of source code URLs to add.IllegalArgumentException
- If any of the given sourceCodeURLs could not be read properly.public SearchableDocumentation process()
Copyright © 2005–2015 MojoHaus. All rights reserved.