nl.tudelft.simulation.introspection.beans
Class BeanUtils

java.lang.Object
  extended bynl.tudelft.simulation.introspection.beans.BeanUtils

public class BeanUtils
extends java.lang.Object

Utility class for bean tests.

(c) copyright 2003-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Since:
1.4
Version:
1.1 Apr 15, 2004
Author:
Niels Lang Peter Jacobs

Constructor Summary
BeanUtils()
           
 
Method Summary
static boolean isNull(java.lang.Object bean, java.beans.PropertyDescriptor pd)
          resolves whether the bean is null
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanUtils

public BeanUtils()
Method Detail

isNull

public static boolean isNull(java.lang.Object bean,
                             java.beans.PropertyDescriptor pd)
resolves whether the bean is null

Parameters:
bean - A bean instance.
pd - A PropertyDescriptor for the property to be examined.
Returns:
True, if the value of the property described by 'pd' for the instance 'bean' is null indeed. Returns false otherwise.


Copyright © 2002-2004 Delft University of Technology, the Netherlands. All Rights Reserved.