public class ArgumentHelper extends Object
Constructor and Description |
---|
ArgumentHelper(String usage,
String[] args) |
Modifier and Type | Method and Description |
---|---|
int |
getIntegerValue(String arg,
boolean mandatory,
int minValue,
int maxValue) |
String |
getStringValue(String arg,
boolean mandatory,
boolean nonEmpty) |
void |
printUsage() |
static Map<String,String> |
ripArgs(String... args) |
public String getStringValue(String arg, boolean mandatory, boolean nonEmpty)
IllegalArgumentException
- if the argument doesn't match the requirements.public int getIntegerValue(String arg, boolean mandatory, int minValue, int maxValue)
IllegalArgumentException
- if the argument doesn't match the requirements.public void printUsage()
Copyright © 2005–2018 Alfresco Software. All rights reserved.