Class PropertyChangeNotification

java.lang.Object
com.pnfsoftware.jeb.core.events.PropertyChangeNotification

public class PropertyChangeNotification extends Object
Event data issued with J.PropertyChange to report changes in one or more JEB properties. This object contains one or more updated properties, and their updated values.
  • Constructor Details

    • PropertyChangeNotification

      public PropertyChangeNotification()
      Create an empty property-change notification.
    • PropertyChangeNotification

      public PropertyChangeNotification(String propfqn, Object value, IPropertyDefinition pd)
      Create a property-change notification containing a single entry.
      Parameters:
      propfqn - property fully-qualified name
      value - updated value, or null if the property was reset
      pd - optional property definition
  • Method Details

    • add

      public void add(String propfqn, Object value, IPropertyDefinition pd)
      Add a property-change entry.
      Parameters:
      propfqn - property fully-qualified name
      value - updated value, or null if the property was reset
      pd - optional property definition
    • entries

      Get the recorded property-change entries.
      Returns:
      the mutable backing list of entries
    • has

      public boolean has(String... propfqns)
      Determine if this object contains a change notification at least one of the provided property name.
      Parameters:
      propfqns - list of properties to be tested
      Returns:
      if true, at least one of the provided properties is part of the list of updates stored in this notification object
    • toString

      public String toString()
      Overrides:
      toString in class Object