org.salespointframework.web.helper
Class CheckMethodes

java.lang.Object
  extended by org.salespointframework.web.helper.CheckMethodes

public final class CheckMethodes
extends java.lang.Object

Methods checking attributes.

Author:
Uwe Schmidt, Lars Kreisz

Constructor Summary
CheckMethodes()
           
 
Method Summary
static boolean checkAttributIsEmpty(java.lang.Object attribut)
          Runs a 'null'-check.
static void checkAttributIsEmptyAndThrowException(java.lang.Object attribut, java.lang.String message)
          If the checked attribute is empty a NullPointerException will be thrown.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckMethodes

public CheckMethodes()
Method Detail

checkAttributIsEmpty

public static final boolean checkAttributIsEmpty(java.lang.Object attribut)
Runs a 'null'-check.

Parameters:
attribut - This object will be check.
Returns:
'true' - the object is empty.

checkAttributIsEmptyAndThrowException

public static final void checkAttributIsEmptyAndThrowException(java.lang.Object attribut,
                                                               java.lang.String message)
If the checked attribute is empty a NullPointerException will be thrown.

Parameters:
attribut - This object will be check.
message - Takes a message into the exception.