java.lang.Object
nl.tudelft.simulation.introspection.beans.BeanUtils

public class BeanUtils extends Object
Utility class for bean tests.

Copyright (c) 2002-2025 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information DSOL Manual. The DSOL project is distributed under a three-clause BSD-style license, which can be found at DSOL License.

Since:
1.5
Author:
Peter Jacobs , Alexander Verbraeck, Niels Lang.
  • Constructor Details

    • BeanUtils

      public BeanUtils()
  • Method Details

    • isNull

      public static boolean isNull(Object bean, 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.