com.eurotech.framework.core.util
Class ValidationUtil

java.lang.Object
  extended by com.eurotech.framework.core.util.ValidationUtil

public class ValidationUtil
extends Object


Constructor Summary
ValidationUtil()
           
 
Method Summary
static void notEmptyOrNull(String value, String argumentName)
          Throws an EdcIllegalNullArgumentException if the string value for the specified argument is empty or null.
static void notNegative(int value, String argumentName)
          Throws an EdcIllegalNullArgumentException if the value for the specified argument is null.
static void notNegative(long value, String argumentName)
          Throws an EdcIllegalNullArgumentException if the value for the specified argument is null.
static void notNegative(short value, String argumentName)
          Throws an EdcIllegalNullArgumentException if the value for the specified argument is null.
static void notNull(Object value, String argumentName)
           
 
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

notNull

public static void notNull(Object value,
                           String argumentName)
                    throws EsfException
Throws:
EsfException

notEmptyOrNull

public static void notEmptyOrNull(String value,
                                  String argumentName)
                           throws EsfException
Throws an EdcIllegalNullArgumentException if the string value for the specified argument is empty or null.

Parameters:
obj -
argumentName -
Throws:
EdcIllegalNullArgumentException
EsfException

notNegative

public static void notNegative(int value,
                               String argumentName)
                        throws EsfException
Throws an EdcIllegalNullArgumentException if the value for the specified argument is null.

Parameters:
obj -
argumentName -
Throws:
EdcIllegalNullArgumentException
EsfException

notNegative

public static void notNegative(short value,
                               String argumentName)
                        throws EsfException
Throws an EdcIllegalNullArgumentException if the value for the specified argument is null.

Parameters:
obj -
argumentName -
Throws:
EdcIllegalNullArgumentException
EsfException

notNegative

public static void notNegative(long value,
                               String argumentName)
                        throws EsfException
Throws an EdcIllegalNullArgumentException if the value for the specified argument is null.

Parameters:
obj -
argumentName -
Throws:
EdcIllegalNullArgumentException
EsfException


Copyright © 2013. All Rights Reserved.