mk.fsgrep.util
Class Args
java.lang.Object
mk.fsgrep.util.Args
public class Args
- extends java.lang.Object
A simple bean that holds all the invokation parameters.
It contains logic to instantiate itself from the command line arguments.
- Author:
- Murali Krishnan
Constructor Summary |
Args()
Principly for testing. |
Args(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_DEFAULT_DIR
public static final java.lang.String KEY_DEFAULT_DIR
- See Also:
- Constant Field Values
KEY_DEFAULT_SUFFIX
public static final java.lang.String KEY_DEFAULT_SUFFIX
- See Also:
- Constant Field Values
KEY_RESULT_FILE
public static final java.lang.String KEY_RESULT_FILE
- See Also:
- Constant Field Values
Args
public Args(java.lang.String[] args)
Args
public Args()
- Principly for testing.
getRoot
public java.lang.String getRoot()
getSuffix
public java.lang.String getSuffix()
isCaseSensitive
public boolean isCaseSensitive()
getPattern
public java.lang.String getPattern()
getShowUsage
public boolean getShowUsage()
getShowVersion
public boolean getShowVersion()
isListFileMatches
public boolean isListFileMatches()
isListFilesWithoutMatch
public boolean isListFilesWithoutMatch()
isSearchFileNames
public boolean isSearchFileNames()
isQuiet
public boolean isQuiet()
getResultFile
public java.lang.String getResultFile()
isSearchingComments
public boolean isSearchingComments()
isUsingGui
public boolean isUsingGui()
setRoot
public void setRoot(java.lang.String val)
setSuffix
public void setSuffix(java.lang.String val)
setCaseSensitive
public void setCaseSensitive(boolean val)
setPattern
public void setPattern(java.lang.String val)
setShowUsage
public void setShowUsage(boolean val)
setShowVersion
public void setShowVersion(boolean val)
setListFileMatches
public void setListFileMatches(boolean val)
setListFilesWithoutMatch
public void setListFilesWithoutMatch(boolean val)
setSearchFileNames
public void setSearchFileNames(boolean val)
setQuiet
public void setQuiet(boolean val)
setResultFile
public void setResultFile(java.lang.String val)
setSearchingComments
public void setSearchingComments(boolean val)
setUsingGui
public void setUsingGui(boolean val)
setDefaults
protected void setDefaults(AppProperties props)
parse
protected void parse(java.lang.String[] args)
launchGui
public boolean launchGui()
createReportOutput
public OutputDestination createReportOutput()
createResultOutput
public OutputDestination createResultOutput()
createFileOutput
public OutputDestination createFileOutput()
Copyright © 2009. All Rights Reserved.