com.zmicer.utils
Class InputArgumentUtils

java.lang.Object
  extended by com.zmicer.utils.InputArgumentUtils

public class InputArgumentUtils
extends Object

This class provides the functionality for checking the input argument utils. It could be used for the checkfing the input argument of the method on the validness $Author:: zmicer $
$Rev:: 57 $
* $Date:: 2007-08-23 09:16:37 #$


Field Summary
static org.apache.log4j.Logger LOG
          Logger instance.
 
Constructor Summary
InputArgumentUtils()
           
 
Method Summary
static void checkObjects(Object... objects)
          Check the all the input arguments of the provided var args are not null.
static void checkStrings(boolean checkOnEmpty, String... strings)
          Check Stiring objects provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Logger instance.

Constructor Detail

InputArgumentUtils

public InputArgumentUtils()
Method Detail

checkObjects

public static void checkObjects(Object... objects)
Check the all the input arguments of the provided var args are not null. Throw IllegalArgumentException in the case some of these params is null.

Parameters:
objects - the var arg of the objects to be checked. Can not be null (otherwise IllegalArgumentException would appear). $Rev:: 57 $
* $Date:: 2007-08-23 09:16:37 #$

checkStrings

public static void checkStrings(boolean checkOnEmpty,
                                String... strings)
Check Stiring objects provided.

Parameters:
checkOnEmpty - flag indicating that we need to check the String on emptyness too. In the case this is true, all the String objects would be checked on the emptyness
strings - The var args of String object to be checked


Copyright © 2007 jzmicer.team. All Rights Reserved.