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

public class BeanUtils extends Object
Utility class for bean tests.

Copyright (c) 2002-2024 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://simulation.tudelft.nl. The DSOL project is distributed under a three-clause BSD-style license, which can be found at https://https://simulation.tudelft.nl/dsol/docs/latest/license.html.

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 - Object; A bean instance.
      pd - PropertyDescriptor; 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.