com.ibm.ccd.ui.util
Class ValidationUtil

java.lang.Object
  extended by com.ibm.ccd.ui.util.ValidationUtil

public class ValidationUtil
extends java.lang.Object

This is support class used for general purpose validations in the WPS UI framework


Constructor Summary
ValidationUtil()
           
 
Method Summary
static boolean isNullOrEmpty(java.lang.Object dataValue)
          Checks if the input parameter is Null or Empty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidationUtil

public ValidationUtil()
Method Detail

isNullOrEmpty

public static boolean isNullOrEmpty(java.lang.Object dataValue)
Checks if the input parameter is Null or Empty. If so, it returns true else false. The input parameter is set as an object. It first checks if the object is null. If it is not null,
  • if the data type is a String, it checks if the value is empty.
  • if the data type is a Collection, it checks if its size is empty.
  • if the data type is a Map, it checks if its size is empty.
  • Parameters:
    dataValue - the input value
    Returns:
    the boolean value true or false