Example #1
0
 private void checkForRequiredParameter(Object parameterValue, String parameterName)
     throws UsageException {
   if (parameterValue == null) {
     UsageException.throwForMissingRequiredValue(parameterName);
   }
 }
Example #2
0
 private void checkForRequiredParameter(String parameterValue, String parameterName)
     throws UsageException {
   if (parameterValue == null || parameterValue.length() == 0) {
     UsageException.throwForMissingRequiredValue(parameterName);
   }
 }