Package org.alfresco.util
Class ArgumentHelper
java.lang.Object
org.alfresco.util.ArgumentHelper
Utility class to assist in extracting program arguments.
- Since:
- V2.1-A
- Author:
- Derek Hulley
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getIntegerValue
(String arg, boolean mandatory, int minValue, int maxValue) getStringValue
(String arg, boolean mandatory, boolean nonEmpty) void
-
Constructor Details
-
ArgumentHelper
-
-
Method Details
-
ripArgs
-
getStringValue
- Throws:
IllegalArgumentException
- if the argument doesn't match the requirements.
-
getIntegerValue
- Returns:
- Returns the value assigned or the minimum value if the parameter was not present
- Throws:
IllegalArgumentException
- if the argument doesn't match the requirements.
-
printUsage
public void printUsage()
-