public class Settings extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CPD_LANGUAGE_DEFAULT |
static int |
CPD_MINIMUM_TOKENS_DEFAULT |
static String |
CPD_RENDER_FORMAT_DEFAULT |
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
FilenameFilter |
filenameFilter() |
void |
generateHtml(File outputFile)
Generates HTML file from the provided XML file and the specified stylesheet.
|
String |
getApplicationName() |
String |
getDbPassword() |
String |
getDbUrl() |
String |
getDbUser() |
Properties |
getDefines() |
String |
getDriverName() |
String |
getFormatString() |
String |
getGetMetadataStatement() |
String |
getInputEncoding() |
Collection |
getInputFiles() |
Collection |
getInputObjects() |
Collection |
getInputTypes() |
net.sourceforge.pmd.cpd.Language |
getLanguage() |
String |
getLanguageString() |
int |
getMinimumTileSize() |
File |
getOutputDirectory() |
File |
getOutputFile() |
net.sourceforge.pmd.cpd.Renderer |
getRenderer() |
static net.sourceforge.pmd.cpd.Renderer |
getRendererFromString(String name) |
int |
getReturnType() |
File |
getSourceStylesheet() |
File |
getStylesheet() |
boolean |
ignoreComments() |
boolean |
ignoreIdentifiers() |
boolean |
ignoreLiterals() |
boolean |
isExitOnError() |
boolean |
isSaveSourceCode() |
boolean |
isShowSkippedPackages() |
boolean |
isVerbose() |
net.sourceforge.pmd.cpd.Language |
language() |
int |
minimumTileSize() |
void |
processCommandString(String[] args)
Consume command line strings received by the main() method
|
net.sourceforge.pmd.cpd.Renderer |
renderer() |
void |
setApplicationName(String applicationName) |
void |
setDbPassword(String dbPassword) |
void |
setDbUrl(String dbUrl) |
void |
setDbUser(String dbUser) |
void |
setDefines(Properties defines) |
void |
setDriverName(String driverName) |
void |
setExitOnError(boolean exitOnError) |
void |
setFormat(net.sourceforge.pmd.cpd.Renderer renderer) |
void |
setFormat(String formatString) |
void |
setGetMetadataStatement(String getMetadataStatement) |
void |
setIgnoreComments(boolean flag) |
void |
setIgnoreIdentifiers(boolean flag) |
void |
setIgnoreLiterals(boolean flag) |
void |
setInputEncoding(String inputEncoding) |
void |
setInputFiles(Collection inputFiles) |
void |
setInputObjects(Collection inputObjects) |
void |
setInputTypes(Collection inputTypes) |
void |
setLanguage(net.sourceforge.pmd.cpd.Language language) |
void |
setLanguage(String languageString) |
void |
setMinimumTileSize(Integer minimumTileSize) |
void |
setOutputDirectory(File outputDirectory) |
void |
setOutputFile(File outputFile) |
void |
setOutputFile(String outputFileName) |
void |
setReturnType(int returnType) |
void |
setSaveSourceCode(boolean savesourcecode) |
void |
setShowSkippedPackages(boolean showSkippedPackages) |
void |
setSourceStylesheet(File sourcestylesheetFile) |
void |
setSourceStylesheet(String sourcestylesheetName) |
void |
setStylesheet(File stylesheetFile) |
void |
setStylesheet(String stylesheetName) |
void |
setVerbose(boolean verbose) |
boolean |
skipDuplicates() |
void |
skipDuplicates(boolean flag) |
net.sourceforge.pmd.cpd.SourceCode |
sourceCodeFor(File file) |
net.sourceforge.pmd.cpd.Tokenizer |
tokenizer() |
public static final String CPD_RENDER_FORMAT_DEFAULT
public static final String CPD_LANGUAGE_DEFAULT
public static final int CPD_MINIMUM_TOKENS_DEFAULT
public void processCommandString(String[] args) throws Exception
args
- Command-line argumentsException
- on errorpublic void setApplicationName(String applicationName)
public void setOutputDirectory(File outputDirectory)
public void setInputFiles(Collection inputFiles)
public void setDefines(Properties defines)
public void setInputEncoding(String inputEncoding)
public void setVerbose(boolean verbose)
public void setExitOnError(boolean exitOnError)
public void setReturnType(int returnType)
public void setDriverName(String driverName)
public void setGetMetadataStatement(String getMetadataStatement)
public void setDbUrl(String dbUrl)
public void setDbUser(String dbUser)
public void setDbPassword(String dbPassword)
public void setInputObjects(Collection inputObjects)
public void setInputTypes(Collection inputTypes)
public void setShowSkippedPackages(boolean showSkippedPackages)
public void setSaveSourceCode(boolean savesourcecode)
public String getApplicationName()
public File getOutputDirectory()
public Collection getInputFiles()
public Properties getDefines()
public String getInputEncoding()
public boolean isVerbose()
public boolean isExitOnError()
public String getDbUrl()
public String getGetMetadataStatement()
public int getReturnType()
public String getDriverName()
public String getDbUser()
public String getDbPassword()
public Collection getInputObjects()
public Collection getInputTypes()
public boolean isShowSkippedPackages()
public boolean isSaveSourceCode()
public net.sourceforge.pmd.cpd.SourceCode sourceCodeFor(File file)
public net.sourceforge.pmd.cpd.Language language()
public int minimumTileSize()
public boolean skipDuplicates()
public void skipDuplicates(boolean flag)
public boolean ignoreComments()
public void setLanguage(String languageString)
public void setLanguage(net.sourceforge.pmd.cpd.Language language)
public net.sourceforge.pmd.cpd.Language getLanguage()
public void setFormat(String formatString)
public void setFormat(net.sourceforge.pmd.cpd.Renderer renderer)
public net.sourceforge.pmd.cpd.Renderer getRenderer()
public void setIgnoreComments(boolean flag)
public boolean ignoreIdentifiers()
public void setIgnoreIdentifiers(boolean flag)
public boolean ignoreLiterals()
public void setIgnoreLiterals(boolean flag)
public int getMinimumTileSize()
public void setMinimumTileSize(Integer minimumTileSize)
public FilenameFilter filenameFilter()
public net.sourceforge.pmd.cpd.Tokenizer tokenizer()
public net.sourceforge.pmd.cpd.Renderer renderer()
public static net.sourceforge.pmd.cpd.Renderer getRendererFromString(String name)
public void setOutputFile(String outputFileName)
public void setOutputFile(File outputFile)
public File getOutputFile()
public void setStylesheet(String stylesheetName)
public void setStylesheet(File stylesheetFile)
public File getStylesheet()
public void setSourceStylesheet(String sourcestylesheetName)
public void setSourceStylesheet(File sourcestylesheetFile)
public File getSourceStylesheet()
public String getFormatString()
public String getLanguageString()
Copyright © 2015. All rights reserved.