public class GlobalyzerAPIScanDetails
extends java.lang.Object
Constructor and Description |
---|
GlobalyzerAPIScanDetails()
Creates a new ScanDetail object with default settings.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Boolean |
getCheckEmbeddedStrings()
Return whether or not scan checks for embedded strings.
|
java.lang.Boolean |
getCheckGeneralPatterns()
Return whether or not scan checks for general patterns.
|
java.lang.Boolean |
getCheckLocaleSensitiveMethods()
Return whether or not scan checks for locale-sensitive methods.
|
java.lang.Boolean |
getCheckStaticFileReferences()
Return whether or not scan checks for static file references.
|
java.lang.String |
getEncoding()
Return the source file encoding for the scan.
|
java.lang.String |
getEndIgnoreComment()
Return scan's end ignore comment.
|
java.lang.String |
getIgnoreNextLineComment()
Return scan's ignore next line comment.
|
java.lang.String[] |
getScanItems()
Return the items to scan.
|
java.lang.String |
getStartIgnoreComment()
Return scan's start ignore comment.
|
java.lang.String |
getTodoComment()
Return scan's todo comment.
|
java.lang.Boolean |
getUseMachineLearning()
Return whether or not to use machine learning when scanning.
|
void |
setCheckEmbeddedStrings(java.lang.Boolean check)
Set whether or not scan should check for embedded strings.
|
void |
setCheckGeneralPatterns(java.lang.Boolean check)
Set whether or not scan should check for general patterns.
|
void |
setCheckLocaleSensitiveMethods(java.lang.Boolean check)
Set whether or not scan should check for locale-sensitive methods.
|
void |
setCheckStaticFileReferences(java.lang.Boolean check)
Set whether or not scan should check for static file references.
|
void |
setEncoding(java.lang.String encoding)
Set the encoding for the scan.
|
void |
setEndIgnoreComment(java.lang.String comment)
Set scan's end ignore comment text.
|
void |
setIgnoreNextLineComment(java.lang.String comment)
Set scan's ignore next line comment text.
|
void |
setScanItems(java.lang.String[] scanItems)
Set the items to scan.
|
void |
setStartIgnoreComment(java.lang.String comment)
Set scan's start ignore comment text.
|
void |
setTodoComment(java.lang.String comment)
Set scan's todo comment text.
|
void |
setUseMachineLearning(java.lang.Boolean useMachineLearning)
Set whether or not to use machine learning when scanning.
|
public GlobalyzerAPIScanDetails()
public void setScanItems(java.lang.String[] scanItems)
scanItems
- List of files/directories to scan. Maybe be relative (to project path) or absolutepublic void setUseMachineLearning(java.lang.Boolean useMachineLearning)
useMachineLearning
- true, false, or null (to use default setting)public void setEncoding(java.lang.String encoding) throws GlobalyzerAPIException
encoding
- The source file encoding for the scanGlobalyzerAPIException
- if encoding is invalidpublic void setCheckEmbeddedStrings(java.lang.Boolean check)
check
- true, false, or null (to use default setting)public void setCheckLocaleSensitiveMethods(java.lang.Boolean check)
check
- true, false, or null (to use default setting)public void setCheckGeneralPatterns(java.lang.Boolean check)
check
- true, false, or null (to use default setting)public void setCheckStaticFileReferences(java.lang.Boolean check)
check
- true, false, or null (to use default setting)public void setTodoComment(java.lang.String comment)
comment
- Todo comment text for the scan; null = use default settingpublic void setIgnoreNextLineComment(java.lang.String comment)
comment
- Ignore next line comment text for the scan; null = use default settingpublic void setStartIgnoreComment(java.lang.String comment)
comment
- Start ignore comment text for the scan; null = use default settingpublic void setEndIgnoreComment(java.lang.String comment)
comment
- End ignore comment text for the scan; null = use default settingpublic java.lang.String[] getScanItems()
public java.lang.Boolean getUseMachineLearning()
public java.lang.String getEncoding()
public java.lang.Boolean getCheckEmbeddedStrings()
public java.lang.Boolean getCheckLocaleSensitiveMethods()
public java.lang.Boolean getCheckGeneralPatterns()
public java.lang.Boolean getCheckStaticFileReferences()
public java.lang.String getTodoComment()
public java.lang.String getIgnoreNextLineComment()
public java.lang.String getStartIgnoreComment()
public java.lang.String getEndIgnoreComment()