Interface IPropertySource2

All Superinterfaces:
IPropertySource

public interface IPropertySource2 extends IPropertySource
Extension to the standard IPropertySource interface.

This interface provides extended API to IPropertySource to allow an easier indication of properties that have a default value and can be resetted.

Since:
3.0
See Also:
  • Method Details

    • isPropertyResettable

      boolean isPropertyResettable(Object id)
      Returns whether the value of the property with the specified id is resettable to a default value.
      Parameters:
      id - the id of the property
      Returns:
      true if the property with the specified id has a meaningful default value to which it can be resetted, and false otherwise
      See Also:
    • isPropertySet

      boolean isPropertySet(Object id)
      IPropertySource2 overrides the specification of this IPropertySource method to return true instead of false if the specified property does not have a meaningful default value. isPropertyResettable will only be called if isPropertySet returns true.

      Returns whether the value of the property with the given id has changed from its default value. Returns false if this source does not have the specified property.

      If the notion of default value is not meaningful for the specified property then true is returned.

      Specified by:
      isPropertySet in interface IPropertySource
      Parameters:
      id - the id of the property
      Returns:
      true if the value of the specified property has changed from its original default value, true if the specified property does not have a meaningful default value, and false if this source does not have the specified property
      Since:
      3.1
      See Also: