|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.smartics.testdoc.collect.generator.TestDocGenerator.Config.Builder
public static final class TestDocGenerator.Config.Builder
The builder to collect information and construct the config instance.
Constructor Summary | |
---|---|
TestDocGenerator.Config.Builder() |
Method Summary | |
---|---|
void |
setCharset(Charset charset) Sets the charset to read the source files. |
void |
setCharsetByEncoding(String encoding) Sets the charset to read the source files by the name of the character encoding. |
void |
setClassPathElements(List<String> classPathElements) |
void |
setExportAdapterName(Class<? extends ExportAdapter> exportAdapterType) Sets the name of the export adapter to use. |
void |
setExportAdapterName(String exportAdapterName) Sets the name of the export adapter to use. |
void |
setLocale(Locale locale) Sets the locale to read the source files. |
void |
setRootDirs(Collection<File> rootDirs) Sets the root directories that contain the source files to process. |
void |
setRootDirsAsString(Collection<String> rootDirs) Sets the root directories that contain the source files to process. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestDocGenerator.Config.Builder()
Method Detail |
---|
public void setCharsetByEncoding(String encoding) throws IllegalCharsetNameException, IllegalArgumentException, UnsupportedCharsetException
encoding
- the name of the character encoding to read the source files.
IllegalCharsetNameException
- if the charset name referenced by the encoding is illegal.
IllegalArgumentException
- if the given
encoding is
null
.
UnsupportedCharsetException
- if no support for the encoding is available in this instance of the Java virtual machine.
public void setCharset(Charset charset)
charset
- the charset to read the source files.
public void setLocale(Locale locale)
locale
- the locale to read the source files.
public void setRootDirsAsString(Collection<String> rootDirs)
rootDirs
- the root directories that contain the source files to process.
public void setRootDirs(Collection<File> rootDirs)
rootDirs
- the root directories that contain the source files to process.
public void setExportAdapterName(String exportAdapterName) throws InstantiationException, IllegalAccessException, ExceptionInInitializerError, ClassNotFoundException
exportAdapterName
- the name of the export adapter to use. * @throws LinkageError if the linkage fails
ExceptionInInitializerError
- if the initialization provoked by this method fails
ClassNotFoundException
- if the class cannot be located
IllegalAccessException
- if the class or its nullary constructor is not accessible.
InstantiationException
- if this
Class
represents an abstract class, an interface, an array class, a primitive type, or void; or if the class has no nullary constructor; or if the instantiation fails for some other reason.
ExceptionInInitializerError
- if the initialization provoked by this method fails.
SecurityException
- If a security manager,
s, is present and any of the following conditions is met:
s.checkMemberAccess(this, Member.PUBLIC)
denies creation of new instances of this class s.checkPackageAccess()
denies access to the package of this class public void setExportAdapterName(Class<? extends ExportAdapter> exportAdapterType) throws InstantiationException, IllegalAccessException, ExceptionInInitializerError, SecurityException
SingletonInMemoryExportAdapter
.
exportAdapterType
- the type of the export adapter to use.
IllegalAccessException
- if the class or its nullary constructor is not accessible.
InstantiationException
- if this
Class
represents an abstract class, an interface, an array class, a primitive type, or void; or if the class has no nullary constructor; or if the instantiation fails for some other reason.
ExceptionInInitializerError
- if the initialization provoked by this method fails.
SecurityException
- If a security manager,
s, is present and any of the following conditions is met:
s.checkMemberAccess(this, Member.PUBLIC)
denies creation of new instances of this class s.checkPackageAccess()
denies access to the package of this class public void setClassPathElements(List<String> classPathElements)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |